Searched defs:clipBounds (Results 1 - 25 of 37) sorted by relevance

12

/external/skia/src/core/
H A DSkRasterizer.cpp16 const SkIRect* clipBounds, SkMaskFilter* filter,
20 if (clipBounds && filter && SkMask::kJustRenderImage_CreateMode != mode) {
29 storage = clipBounds->makeOutset(margin.fX, margin.fY);
30 clipBounds = &storage;
33 return this->onRasterize(fillPath, matrix, clipBounds, mask, mode);
39 const SkIRect* clipBounds,
44 return SkDraw::DrawToMask(devPath, clipBounds, nullptr, nullptr, mask, mode,
15 rasterize(const SkPath& fillPath, const SkMatrix& matrix, const SkIRect* clipBounds, SkMaskFilter* filter, SkMask* mask, SkMask::CreateMode mode) const argument
38 onRasterize(const SkPath& fillPath, const SkMatrix& matrix, const SkIRect* clipBounds, SkMask* mask, SkMask::CreateMode mode) const argument
H A DSkScan.cpp30 const SkIRect& clipBounds = clip->getBounds(); local
32 if (clipBounds.contains(r)) {
36 if (rr.intersect(clipBounds)) {
H A DSkImageFilterCache.h19 const SkIRect& clipBounds, uint32_t srcGenID, const SkIRect& srcSubset)
22 , fClipBounds(clipBounds)
47 // This cache maps from (filter's unique ID + CTM + clipBounds + src bitmap generation ID) to
18 SkImageFilterCacheKey(const uint32_t uniqueID, const SkMatrix& matrix, const SkIRect& clipBounds, uint32_t srcGenID, const SkIRect& srcSubset) argument
H A DSkImageFilter.cpp208 SkImageFilterCacheKey key(fUniqueID, context.ctm(), context.clipBounds(), srcGenID, srcSubset);
346 return dstBounds->intersect(ctx.clipBounds());
425 if (!bounds->intersect(ctx.clipBounds())) {
467 SkIRect clipBounds = this->onFilterNodeBounds(ctx.clipBounds(), ctx.ctm(), local
469 return Context(ctx.ctm(), clipBounds, ctx.cache(), ctx.outputProperties());
H A DSkMaskFilter.cpp295 const SkIRect& clipBounds, NinePatch*) const {
301 const SkIRect& clipBounds, NinePatch*) const {
311 const SkIRect& clipBounds,
294 filterRRectToNine(const SkRRect&, const SkMatrix&, const SkIRect& clipBounds, NinePatch*) const argument
300 filterRectsToNine(const SkRect[], int count, const SkMatrix&, const SkIRect& clipBounds, NinePatch*) const argument
310 canFilterMaskGPU(const SkRRect& devRRect, const SkIRect& clipBounds, const SkMatrix& ctm, SkRect* maskRect) const argument
H A DSkBitmapDevice.cpp399 const SkIRect clipBounds = fRCStack.rc().getBounds().makeOffset(-x, -y); local
402 SkImageFilter::Context ctx(matrix, clipBounds, cache.get(), outputProperties);
/external/skia/src/effects/
H A DSkComposeImageFilter.cpp40 innerClipBounds = this->getInput(0)->filterBounds(ctx.clipBounds(), ctx.ctm());
50 SkIRect clipBounds = ctx.clipBounds(); local
51 clipBounds.offset(-innerOffset.x(), -innerOffset.y());
52 Context outerContext(outerMatrix, clipBounds, ctx.cache(), ctx.outputProperties());
H A DSkLayerRasterizer.cpp51 const SkIRect* clipBounds, SkIRect* bounds) {
78 if (!SkDraw::DrawToMask(devPath, clipBounds, paint.getMaskFilter(),
91 const SkIRect* clipBounds,
99 if (!compute_bounds(*fLayers, path, matrix, clipBounds, &mask->fBounds))
49 compute_bounds(const SkDeque& layers, const SkPath& path, const SkMatrix& matrix, const SkIRect* clipBounds, SkIRect* bounds) argument
90 onRasterize(const SkPath& path, const SkMatrix& matrix, const SkIRect* clipBounds, SkMask* mask, SkMask::CreateMode mode) const argument
H A DSkBlurMaskFilter.cpp51 const SkIRect& clipBounds,
83 const SkIRect& clipBounds,
87 const SkIRect& clipBounds,
464 const SkIRect& clipBounds,
494 // TODO: take clipBounds into account to limit our coordinates up front
602 const SkIRect& clipBounds,
614 // TODO: take clipBounds into account to limit our coordinates up front
1455 const SkIRect& clipBounds,
1483 SkRect clipRect = SkRect::Make(clipBounds);
463 filterRRectToNine(const SkRRect& rrect, const SkMatrix& matrix, const SkIRect& clipBounds, NinePatch* patch) const argument
600 filterRectsToNine(const SkRect rects[], int count, const SkMatrix& matrix, const SkIRect& clipBounds, NinePatch* patch) const argument
1454 canFilterMaskGPU(const SkRRect& devRRect, const SkIRect& clipBounds, const SkMatrix& ctm, SkRect* maskRect) const argument
/external/skia/src/gpu/
H A DGrPathRenderingRenderTargetContext.cpp21 const SkIRect& clipBounds) {
34 clipBounds);
41 const SkIRect& clipBounds) {
55 this->surfaceProps(), text, byteLength, pos, scalarsPerPosition, offset, clipBounds);
63 const SkIRect& clipBounds) {
77 y, filter, clipBounds);
18 drawText(const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, SkScalar x, SkScalar y, const SkIRect& clipBounds) argument
37 drawPosText(const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds) argument
58 drawTextBlob(const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkTextBlob* blob, SkScalar x, SkScalar y, SkDrawFilter* filter, const SkIRect& clipBounds) argument
H A DGrBlurUtils.cpp26 static bool clip_bounds_quick_reject(const SkIRect& clipBounds, const SkIRect& rect) { argument
27 return clipBounds.isEmpty() || rect.isEmpty() || !SkIRect::Intersects(clipBounds, rect);
64 const SkIRect& clipBounds,
68 if (!SkDraw::DrawToMask(devPath, &clipBounds, filter, &viewMatrix, &srcM,
80 if (clip_bounds_quick_reject(clipBounds, dstM.fBounds)) {
158 SkIRect clipBounds; local
161 &clipBounds);
199 clipBounds,
207 if (clip_bounds_quick_reject(clipBounds, finalIRec
58 sw_draw_with_mask_filter(GrContext* context, GrRenderTargetContext* renderTargetContext, const GrClip& clipData, const SkMatrix& viewMatrix, const SkPath& devPath, const SkMaskFilter* filter, const SkIRect& clipBounds, GrPaint&& paint, SkStrokeRec::InitStyle fillOrHairline) argument
263 drawPathWithMaskFilter(GrContext* context, GrRenderTargetContext* renderTargetContext, const GrClip& clip, const SkPath& origPath, const SkPaint& paint, const SkMatrix& origViewMatrix, const SkMatrix* prePathMatrix, const SkIRect& clipBounds, bool pathIsMutable) argument
[all...]
H A DGrRenderTargetContext.cpp210 const SkIRect& clipBounds) {
218 byteLength, x, y, clipBounds);
225 const SkIRect& clipBounds) {
233 byteLength, pos, scalarsPerPosition, offset, clipBounds);
239 const SkIRect& clipBounds) {
247 y, filter, clipBounds);
464 SkRect clipBounds; local
467 if (!SkMatrixPriv::InverseMapRect(viewMatrix, &clipBounds, SkRect::Make(clipDevBounds))) {
472 if (!rect->intersects(clipBounds)) {
477 if (clipBounds
207 drawText(const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, SkScalar x, SkScalar y, const SkIRect& clipBounds) argument
221 drawPosText(const GrClip& clip, const SkPaint& paint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds) argument
236 drawTextBlob(const GrClip& clip, const SkPaint& paint, const SkMatrix& viewMatrix, const SkTextBlob* blob, SkScalar x, SkScalar y, SkDrawFilter* filter, const SkIRect& clipBounds) argument
[all...]
H A DSkGpuDevice.cpp186 const SkIRect clipBounds = this->devClipBounds().makeOffset(-left, -top); local
189 SkImageFilter::Context ctx(matrix, clipBounds, cache.get(), outputProperties);
/external/skia/gm/
H A Dimagefiltersclipped.cpp47 const SkRect& primBounds, const SkRect& clipBounds) {
53 canvas->clipRect(clipBounds);
46 draw_clipped_filter(SkCanvas* canvas, sk_sp<SkImageFilter> filter, size_t i, const SkRect& primBounds, const SkRect& clipBounds) argument
/external/skia/include/core/
H A DSkImageFilter.h55 Context(const SkMatrix& ctm, const SkIRect& clipBounds, SkImageFilterCache* cache, argument
58 , fClipBounds(clipBounds)
64 const SkIRect& clipBounds() const { return fClipBounds; } function in class:SkImageFilter::Context
/external/skia/src/effects/shadows/
H A DSkAmbientShadowMaskFilter.cpp34 const SkIRect& clipBounds,
131 const SkIRect& clipBounds,
130 canFilterMaskGPU(const SkRRect& devRRect, const SkIRect& clipBounds, const SkMatrix& ctm, SkRect* maskRect) const argument
H A DSkSpotShadowMaskFilter.cpp35 const SkIRect& clipBounds,
151 const SkIRect& clipBounds,
150 canFilterMaskGPU(const SkRRect& devRRect, const SkIRect& clipBounds, const SkMatrix& ctm, SkRect* maskRect) const argument
/external/skia/src/gpu/text/
H A DGrAtlasTextContext.cpp81 SkDrawFilter* drawFilter, const SkIRect& clipBounds) {
159 clip, viewMatrix, clipBounds, x, y);
76 drawTextBlob(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const SkTextBlob* blob, SkScalar x, SkScalar y, SkDrawFilter* drawFilter, const SkIRect& clipBounds) argument
H A DGrAtlasTextBlob.cpp340 const SkIRect& clipBounds) {
354 clipBounds, false);
362 const SkIRect& clipBounds, SkScalar x, SkScalar y) {
375 y + offset.y(), clipBounds);
380 SkPoint::Make(x, y + offset.y()), clipBounds);
385 SkPoint::Make(x, y), clipBounds);
395 const SkIRect& clipBounds, SkScalar x, SkScalar y) {
402 clipBounds, x, y);
410 this->flushBigGlyphs(context, rtc, clip, paint, viewMatrix, x, y, clipBounds);
417 const SkMatrix& viewMatrix, const SkIRect& clipBounds,
337 flushBigGlyphs(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& paint, const SkMatrix& viewMatrix, SkScalar x, SkScalar y, const SkIRect& clipBounds) argument
358 flushRunAsPaths(GrContext* context, GrRenderTargetContext* rtc, const SkSurfaceProps& props, const SkTextBlobRunIterator& it, const GrClip& clip, const GrTextUtils::Paint& paint, SkDrawFilter* drawFilter, const SkMatrix& viewMatrix, const SkIRect& clipBounds, SkScalar x, SkScalar y) argument
390 flushCached(GrContext* context, GrRenderTargetContext* rtc, const SkTextBlob* blob, const SkSurfaceProps& props, const GrDistanceFieldAdjustTable* distanceAdjustTable, const GrTextUtils::Paint& paint, SkDrawFilter* drawFilter, const GrClip& clip, const SkMatrix& viewMatrix, const SkIRect& clipBounds, SkScalar x, SkScalar y) argument
413 flushThrowaway(GrContext* context, GrRenderTargetContext* rtc, const SkSurfaceProps& props, const GrDistanceFieldAdjustTable* distanceAdjustTable, const GrTextUtils::Paint& paint, const GrClip& clip, const SkMatrix& viewMatrix, const SkIRect& clipBounds, SkScalar x, SkScalar y) argument
[all...]
H A DGrStencilAndCoverTextContext.cpp75 SkScalar y, const SkIRect& clipBounds) {
82 run.draw(context, rtc, clip, viewMatrix, props, 0, 0, clipBounds, fFallbackTextContext,
89 byteLength, x, y, clipBounds);
95 clipBounds);
104 const SkIRect& clipBounds) {
111 run.draw(context, rtc, clip, viewMatrix, props, 0, 0, clipBounds, fFallbackTextContext,
118 byteLength, pos, scalarsPerPosition, offset, clipBounds);
124 byteLength, pos, scalarsPerPosition, offset, clipBounds);
136 const SkIRect& clipBounds) {
151 clipBounds);
71 drawText(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const char text[], size_t byteLength, SkScalar x, SkScalar y, const SkIRect& clipBounds) argument
98 drawPosText(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds) argument
127 uncachedDrawTextBlob(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const SkTextBlob* blob, SkScalar x, SkScalar y, SkDrawFilter* drawFilter, const SkIRect& clipBounds) argument
167 drawTextBlob(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& skPaint, const SkMatrix& viewMatrix, const SkSurfaceProps& props, const SkTextBlob* skBlob, SkScalar x, SkScalar y, SkDrawFilter* drawFilter, const SkIRect& clipBounds) argument
566 draw(GrContext* ctx, GrRenderTargetContext* renderTargetContext, const GrClip& clip, const SkMatrix& viewMatrix, const SkSurfaceProps& props, SkScalar x, SkScalar y, const SkIRect& clipBounds, GrAtlasTextContext* fallbackTextContext, const SkPaint& originalSkPaint) const argument
[all...]
H A DGrTextUtils.cpp488 const SkIRect& clipBounds) {
503 pnt, viewMatrix, &matrix, clipBounds, false);
516 const SkPoint& offset, const SkIRect& clipBounds) {
555 viewMatrix, &matrix, clipBounds, false);
485 DrawTextAsPath(GrContext* context, GrRenderTargetContext* rtc, const GrClip& clip, const SkPaint& paint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, SkScalar x, SkScalar y, const SkIRect& clipBounds) argument
509 DrawPosTextAsPath(GrContext* context, GrRenderTargetContext* rtc, const SkSurfaceProps& props, const GrClip& clip, const SkPaint& origPaint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds) argument
/external/skia/src/gpu/ops/
H A DGrTessellatingPathRenderer.cpp230 SkRect clipBounds = SkRect::Make(fDevClipBounds); local
236 vmi.mapRect(&clipBounds);
240 int count = GrTessellator::PathToTriangles(getPath(), tol, clipBounds, &allocator,
259 SkRect clipBounds = SkRect::Make(fDevClipBounds); local
264 int count = GrTessellator::PathToTriangles(path, tol, clipBounds, &allocator,
/external/pdfium/xfa/fwl/
H A Dcfwl_widgetmgr.cpp432 CFX_RectF clipBounds; local
439 clipBounds = pGraphics->GetClipRect();
440 clipCopy = clipBounds;
444 clipBounds = CFX_RectF(pMatrix->a, pMatrix->b, pMatrix->c, pMatrix->d);
451 clipBounds.Intersect(pWidget->GetClientRect());
452 if (!clipBounds.IsEmpty())
453 DrawChild(pWidget, clipBounds, pGraphics, pMatrix);
479 CFX_RectF clipBounds(rtWidget);
486 CFX_PointF pos = widgetMatrix.Transform(clipBounds.TopLeft());
487 clipBounds
[all...]
/external/skia/src/image/
H A DSkImage.cpp263 const SkIRect& clipBounds, SkIRect* outSubset,
278 SkImageFilter::Context context(SkMatrix::I(), clipBounds, cache.get(), outputProperties); local
286 if (!outSubset->intersect(clipBounds.makeOffset(-offset->x(), -offset->y()))) {
262 makeWithFilter(const SkImageFilter* filter, const SkIRect& subset, const SkIRect& clipBounds, SkIRect* outSubset, SkIPoint* offset) const argument
/external/skia/tests/
H A DPictureTest.cpp634 SkIRect clipBounds; local
641 clipBounds = canvas->getDeviceClipBounds();
642 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft);
643 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop);
644 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom);
645 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight);
651 clipBounds = canvas->getDeviceClipBounds();
652 REPORTER_ASSERT(reporter, 7 == clipBounds.fLeft);
653 REPORTER_ASSERT(reporter, 7 == clipBounds.fTop);
654 REPORTER_ASSERT(reporter, 8 == clipBounds
[all...]

Completed in 583 milliseconds

12