Home
last modified time | relevance | path

Searched refs:clipBounds (Results 1 – 25 of 33) sorted by relevance

12

/external/skia/src/core/
DSkRasterizer.cpp16 const SkIRect* clipBounds, SkMaskFilter* filter, in rasterize() argument
20 if (clipBounds && filter && SkMask::kJustRenderImage_CreateMode != mode) { in rasterize()
30 storage = clipBounds->makeOutset(margin.fX, margin.fY); in rasterize()
31 clipBounds = &storage; in rasterize()
34 return this->onRasterize(fillPath, matrix, clipBounds, mask, mode); in rasterize()
40 const SkIRect* clipBounds, in onRasterize() argument
45 return SkDraw::DrawToMask(devPath, clipBounds, NULL, NULL, mask, mode, in onRasterize()
DSkMultiPictureDraw.cpp126 SkRect clipBounds; in draw() local
127 if (!data.fCanvas->getClipBounds(&clipBounds)) { in draw()
142 clipBounds, in draw()
161 SkRect clipBounds; in draw() local
162 if (!canvas->getClipBounds(&clipBounds)) { in draw()
176 clipBounds, &needRendering, &recycled, in draw()
DSkScan.cpp23 const SkIRect& clipBounds = clip->getBounds(); in FillIRect() local
25 if (clipBounds.contains(r)) { in FillIRect()
29 if (rr.intersect(clipBounds)) { in FillIRect()
DSkImageFilter.cpp45 … Key(const uint32_t uniqueID, const SkMatrix& matrix, const SkIRect& clipBounds, uint32_t srcGenID) in Key()
46 : fUniqueID(uniqueID), fMatrix(matrix), fClipBounds(clipBounds), fSrcGenID(srcGenID) { in Key()
178 Cache::Key key(fUniqueID, context.ctm(), context.clipBounds(), srcGenID); in filterImage()
302 if (!srcBounds.intersect(ctx.clipBounds())) { in applyCropRect()
323 if (!bounds->intersect(ctx.clipBounds())) { in applyCropRect()
DSkScan_Antihair.cpp538 SkRect clipBounds; in AntiHairLineRgn() local
540 clipBounds.set(clip->getBounds()); in AntiHairLineRgn()
550 clipBounds.outset(SK_Scalar1, SK_Scalar1); in AntiHairLineRgn()
562 if (clip && !SkLineClipper::IntersectLine(pts, clipBounds, pts)) { in AntiHairLineRgn()
709 const SkIRect& clipBounds = clip->getBounds(); in AntiFillXRect() local
711 if (clipBounds.contains(outerBounds)) { in AntiFillXRect()
716 XRect_set(&tmpR, clipBounds); in AntiFillXRect()
DSkPicture.cpp269 SkRect clipBounds = { 0, 0, 0, 0 }; in playback() local
270 (void)canvas->getClipBounds(&clipBounds); in playback()
271 const bool useBBH = !clipBounds.contains(this->cullRect()); in playback()
DSkMaskFilter.cpp296 const SkIRect& clipBounds, NinePatch*) const { in filterRRectToNine() argument
302 const SkIRect& clipBounds, NinePatch*) const { in filterRectsToNine() argument
312 const SkIRect& clipBounds, in canFilterMaskGPU() argument
DSkScan_Hairline.cpp49 SkRect clipBounds; in HairLineRgn() local
51 clipBounds.set(clip->getBounds()); in HairLineRgn()
67 if (clip && !SkLineClipper::IntersectLine(pts, clipBounds, pts)) { in HairLineRgn()
/external/skia/src/gpu/
DGrTextContext.cpp53 SkScalar x, SkScalar y, const SkIRect& clipBounds) { in drawText() argument
62 clipBounds); in drawText()
70 this->drawTextAsPath(skPaint, viewMatrix, text, byteLength, x, y, clipBounds); in drawText()
77 const SkPoint& offset, const SkIRect& clipBounds) { in drawPosText() argument
86 scalarsPerPosition, offset, clipBounds); in drawPosText()
95 clipBounds); in drawPosText()
101 SkDrawFilter* drawFilter, const SkIRect& clipBounds) { in drawTextBlob() argument
128 textLen, x + offset.x(), y + offset.y(), clipBounds); in drawTextBlob()
132 textLen, it.pos(), 1, SkPoint::Make(x, y + offset.y()), clipBounds); in drawTextBlob()
136 textLen, it.pos(), 2, SkPoint::Make(x, y), clipBounds); in drawTextBlob()
[all …]
DGrTextContext.h34 SkScalar y, const SkIRect& clipBounds);
39 const SkPoint& offset, const SkIRect& clipBounds);
42 SkDrawFilter*, const SkIRect& clipBounds);
69 SkScalar x, SkScalar y, const SkIRect& clipBounds) = 0;
74 const SkPoint& offset, const SkIRect& clipBounds) = 0;
78 const SkIRect& clipBounds);
82 const SkPoint& offset, const SkIRect& clipBounds);
DGrLayerHoister.cpp90 SkIRect clipBounds = dstIR; in compute_source_rect() local
97 info.fPaint->getImageFilter()->filterBounds(clipBounds, totMat, &clipBounds); in compute_source_rect()
106 if (!srcIR->intersect(clipBounds)) { in compute_source_rect()
110 *srcIR = clipBounds; in compute_source_rect()
308 SkIRect clipBounds = layer->rect(); in FilterLayer() local
313 SkImageFilter::Context filterContext(totMat, clipBounds, cache); in FilterLayer()
DGrAtlasTextContext.h57 SkDrawFilter*, const SkIRect& clipBounds) override;
275 const SkMatrix& viewMatrix, const SkIRect& clipBounds, SkScalar x,
285 SkScalar transX, SkScalar transY, const SkIRect& clipBounds);
290 const SkIRect& clipBounds, SkScalar x, SkScalar y, SkScalar transX, SkScalar transY);
292 const GrPaint&, const GrClip&, const SkIRect& clipBounds);
DSkGpuDevice.cpp653 static bool clip_bounds_quick_reject(const SkIRect& clipBounds, const SkIRect& rect) { in clip_bounds_quick_reject() argument
654 return clipBounds.isEmpty() || rect.isEmpty() || !SkIRect::Intersects(clipBounds, rect); in clip_bounds_quick_reject()
663 const SkIRect& clipBounds, in draw_with_mask_filter() argument
668 if (!SkDraw::DrawToMask(devPath, &clipBounds, filter, &viewMatrix, &srcM, in draw_with_mask_filter()
680 if (clip_bounds_quick_reject(clipBounds, dstM.fBounds)) { in draw_with_mask_filter()
772 const SkIRect& clipBounds, bool pathIsMutable) { in internalDrawPath() argument
853 clipBounds, in internalDrawPath()
858 if (clip_bounds_quick_reject(clipBounds, finalIRect)) { in internalDrawPath()
908 paint.getMaskFilter(), clipBounds, &grPaint, style); in internalDrawPath()
1550 SkIRect clipBounds = SkIRect::MakeWH(bitmap.width(), bitmap.height()); in drawSprite() local
[all …]
DGrTessellatingPathRenderer.cpp540 void path_to_contours(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds, in path_to_contours() argument
552 clipBounds.toQuad(quad); in path_to_contours()
1362 SkRect clipBounds) { in Create() argument
1363 return SkNEW_ARGS(TessellatingPathBatch, (color, path, viewMatrix, clipBounds)); in Create()
1474 const SkRect& clipBounds) in TessellatingPathBatch() argument
1478 , fClipBounds(clipBounds) { in TessellatingPathBatch()
1507 SkRect clipBounds = SkRect::Make(clipBoundsI); in onDrawPath() local
1512 vmi.mapRect(&clipBounds); in onDrawPath()
1513 SkAutoTUnref<GrBatch> batch(TessellatingPathBatch::Create(color, path, viewM, clipBounds)); in onDrawPath()
1527 SkRect clipBounds = GrTest::TestRect(random); in BATCH_TEST_DEFINE() local
[all …]
DGrAtlasTextContext.cpp351 SkDrawFilter* drawFilter, const SkIRect& clipBounds) { in drawTextBlob() argument
432 clip, viewMatrix, clipBounds, x, y, transX, transY); in drawTextBlob()
2046 const SkIRect& clipBounds, SkScalar x, SkScalar y) { in flushRunAsPaths() argument
2063 textLen, x + offset.x(), y + offset.y(), clipBounds); in flushRunAsPaths()
2068 clipBounds); in flushRunAsPaths()
2072 textLen, it.pos(), 2, SkPoint::Make(x, y), clipBounds); in flushRunAsPaths()
2142 const SkIRect& clipBounds) { in flushBigGlyphs() argument
2160 fGpuDevice->internalDrawPath(bigGlyph.fPath, skPaint, translate, &pathMatrix, clipBounds, in flushBigGlyphs()
2174 const SkIRect& clipBounds, in flush() argument
2187 this->flushRunAsPaths(it, skPaint, drawFilter, viewMatrix, clipBounds, x, y); in flush()
[all …]
/external/skia/tests/
DPictureTest.cpp913 SkIRect clipBounds; in test_clip_bound_opt() local
920 bool nonEmpty = canvas->getClipDeviceBounds(&clipBounds); in test_clip_bound_opt()
922 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft); in test_clip_bound_opt()
923 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop); in test_clip_bound_opt()
924 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom); in test_clip_bound_opt()
925 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight); in test_clip_bound_opt()
931 bool nonEmpty = canvas->getClipDeviceBounds(&clipBounds); in test_clip_bound_opt()
933 REPORTER_ASSERT(reporter, 7 == clipBounds.fLeft); in test_clip_bound_opt()
934 REPORTER_ASSERT(reporter, 7 == clipBounds.fTop); in test_clip_bound_opt()
935 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom); in test_clip_bound_opt()
[all …]
/external/skia/include/core/
DSkMaskFilter.h93 const SkIRect& clipBounds,
202 const SkIRect& clipBounds,
208 const SkIRect& clipBounds,
DSkRasterizer.h28 const SkIRect* clipBounds, SkMaskFilter* filter,
36 const SkIRect* clipBounds,
DSkImageFilter.h68 Context(const SkMatrix& ctm, const SkIRect& clipBounds, Cache* cache) : in Context() argument
69 fCTM(ctm), fClipBounds(clipBounds), fCache(cache) { in Context()
72 const SkIRect& clipBounds() const { return fClipBounds; } in clipBounds() function
DSkDraw.h93 static bool DrawToMask(const SkPath& devPath, const SkIRect* clipBounds,
/external/skia/src/effects/
DSkLayerRasterizer.cpp55 const SkIRect* clipBounds, SkIRect* bounds) { in compute_bounds() argument
82 if (!SkDraw::DrawToMask(devPath, clipBounds, paint.getMaskFilter(), in compute_bounds()
95 const SkIRect* clipBounds, in onRasterize() argument
103 if (!compute_bounds(*fLayers, path, matrix, clipBounds, &mask->fBounds)) in onRasterize()
DSkPictureImageFilter.cpp103 if (!bounds.intersect(ctx.clipBounds())) { in onFilterImage()
149 SkRect localBounds = SkRect::Make(ctx.clipBounds()); in drawPictureAtLocalResolution()
DSkBlurMaskFilter.cpp47 const SkIRect& clipBounds,
80 const SkIRect& clipBounds,
84 const SkIRect& clipBounds,
315 const SkIRect& clipBounds, in filterRRectToNine() argument
453 const SkIRect& clipBounds, in filterRectsToNine() argument
1162 const SkIRect& clipBounds, in canFilterMaskGPU() argument
1187 SkRect clipRect = SkRect::Make(clipBounds); in canFilterMaskGPU()
DSkComposeImageFilter.cpp41 Context outerContext(outerMatrix, ctx.clipBounds(), ctx.cache()); in onFilterImage()
/external/skia/include/effects/
DSkLayerRasterizer.h76 const SkIRect* clipBounds,

12