Home
last modified time | relevance | path

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

1234

/external/skqp/tests/
DPictureTest.cpp387 SkIRect clipBounds; in test_clip_bound_opt() local
394 clipBounds = canvas->getDeviceClipBounds(); in test_clip_bound_opt()
395 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft); in test_clip_bound_opt()
396 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop); in test_clip_bound_opt()
397 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom); in test_clip_bound_opt()
398 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight); in test_clip_bound_opt()
404 clipBounds = canvas->getDeviceClipBounds(); in test_clip_bound_opt()
405 REPORTER_ASSERT(reporter, 7 == clipBounds.fLeft); in test_clip_bound_opt()
406 REPORTER_ASSERT(reporter, 7 == clipBounds.fTop); in test_clip_bound_opt()
407 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom); in test_clip_bound_opt()
[all …]
DVkDrawableTest.cpp102 const SkIRect& clipBounds, in DrawHandlerImport() argument
109 , fClipBounds(clipBounds) in DrawHandlerImport()
134 static void ImportDraw(TestDrawable* td, const SkMatrix& matrix, const SkIRect& clipBounds, in ImportDraw() argument
142 canvas->clipRect(SkRect::Make(clipBounds)); in ImportDraw()
185 const SkIRect& clipBounds, in onSnapGpuDrawHandler() argument
193 clipBounds, bufferInfo)); in onSnapGpuDrawHandler()
/external/skia/tests/
DPictureTest.cpp387 SkIRect clipBounds; in test_clip_bound_opt() local
394 clipBounds = canvas->getDeviceClipBounds(); in test_clip_bound_opt()
395 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft); in test_clip_bound_opt()
396 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop); in test_clip_bound_opt()
397 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom); in test_clip_bound_opt()
398 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight); in test_clip_bound_opt()
404 clipBounds = canvas->getDeviceClipBounds(); in test_clip_bound_opt()
405 REPORTER_ASSERT(reporter, 7 == clipBounds.fLeft); in test_clip_bound_opt()
406 REPORTER_ASSERT(reporter, 7 == clipBounds.fTop); in test_clip_bound_opt()
407 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom); in test_clip_bound_opt()
[all …]
DVkDrawableTest.cpp102 const SkIRect& clipBounds, in DrawHandlerImport() argument
109 , fClipBounds(clipBounds) in DrawHandlerImport()
134 static void ImportDraw(TestDrawable* td, const SkMatrix& matrix, const SkIRect& clipBounds, in ImportDraw() argument
142 canvas->clipRect(SkRect::Make(clipBounds)); in ImportDraw()
185 const SkIRect& clipBounds, in onSnapGpuDrawHandler() argument
193 clipBounds, bufferInfo)); in onSnapGpuDrawHandler()
/external/skqp/src/effects/imagefilters/
DSkComposeImageFilter.cpp41 innerClipBounds = this->getInput(0)->filterBounds(ctx.clipBounds(), ctx.ctm(), in onFilterImage()
42 kReverse_MapDirection, &ctx.clipBounds()); in onFilterImage()
52 SkIRect clipBounds = ctx.clipBounds(); in onFilterImage() local
53 clipBounds.offset(-innerOffset.x(), -innerOffset.y()); in onFilterImage()
54 Context outerContext(outerMatrix, clipBounds, ctx.cache(), ctx.outputProperties()); in onFilterImage()
/external/skia/src/effects/imagefilters/
DSkComposeImageFilter.cpp41 innerClipBounds = this->getInput(0)->filterBounds(ctx.clipBounds(), ctx.ctm(), in onFilterImage()
42 kReverse_MapDirection, &ctx.clipBounds()); in onFilterImage()
52 SkIRect clipBounds = ctx.clipBounds(); in onFilterImage() local
53 clipBounds.offset(-innerOffset.x(), -innerOffset.y()); in onFilterImage()
54 Context outerContext(outerMatrix, clipBounds, ctx.cache(), ctx.outputProperties()); in onFilterImage()
/external/skia/src/core/
DSkScan_AntiPath.cpp45 const SkIRect& clipBounds, bool isInverse);
78 const SkIRect& clipBounds, bool isInverse) { in BaseSuperBlitter() argument
85 sectBounds = clipBounds; in BaseSuperBlitter()
87 if (!sectBounds.intersect(ir, clipBounds)) { in BaseSuperBlitter()
108 SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkIRect& clipBounds,
154 SuperBlitter::SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkIRect& clipBounds, in SuperBlitter() argument
156 : BaseSuperBlitter(realBlitter, ir, clipBounds, isInverse) in SuperBlitter()
439 const SkIRect& clipBounds, bool isInverse) in MaskSuperBlitter() argument
440 : BaseSuperBlitter(realBlitter, ir, clipBounds, isInverse) in MaskSuperBlitter()
451 if (!fClipRect.intersect(clipBounds)) { in MaskSuperBlitter()
[all …]
DSkScan_DAAPath.cpp29 const SkIRect& clipBounds, bool forceRLE, SkDAARecord* record) { in DAAFillPath() argument
160 void gen_alpha_deltas(const SkPath& path, const SkIRect& clippedIR, const SkIRect& clipBounds, in gen_alpha_deltas() argument
166 int count = builder.buildEdges(path, pathContainedInClip ? nullptr : &clipBounds); in gen_alpha_deltas()
328 const SkIRect& clipBounds, bool forceRLE, SkDAARecord* record) { in DAAFillPath() argument
329 bool containedInClip = clipBounds.contains(ir); in DAAFillPath()
337 clippedIR.intersect(clipBounds); in DAAFillPath()
341 if (!isInverse && TryBlitFatAntiRect(blitter, path, clipBounds)) { in DAAFillPath()
370 gen_alpha_deltas(path, clippedIR, clipBounds, deltaMask, blitter, skipRect, in DAAFillPath()
378 gen_alpha_deltas(path, clippedIR, clipBounds, *deltaList, blitter, skipRect, in DAAFillPath()
389 blitter->blitCoverageDeltas(record->fList, clipBounds, isEvenOdd, isInverse, isConvex); in DAAFillPath()
DSkMaskFilterBase.h103 const SkIRect& clipBounds,
197 const SkIRect& clipBounds,
203 const SkIRect& clipBounds,
DSkScan.cpp28 const SkIRect& clipBounds = clip->getBounds(); in FillIRect() local
30 if (clipBounds.contains(r)) { in FillIRect()
34 if (rr.intersect(clipBounds)) { in FillIRect()
DSkDraw_text.cpp76 SkIRect clipBounds = fRC->isBW() ? fRC->bwRgn().getBounds() in paintMasks() local
84 if (!clipBounds.containsNoEmptyCheck(mask.fBounds)) { in paintMasks()
85 if (!storage.intersectNoEmptyCheck(mask.fBounds, clipBounds)) { in paintMasks()
DSkImageFilterCache.h20 const SkIRect& clipBounds, uint32_t srcGenID, const SkIRect& srcSubset) in SkImageFilterCacheKey()
23 , fClipBounds(clipBounds) in SkImageFilterCacheKey()
/external/skqp/src/core/
DSkScan_AntiPath.cpp45 const SkIRect& clipBounds, bool isInverse);
78 const SkIRect& clipBounds, bool isInverse) { in BaseSuperBlitter() argument
85 sectBounds = clipBounds; in BaseSuperBlitter()
87 if (!sectBounds.intersect(ir, clipBounds)) { in BaseSuperBlitter()
108 SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkIRect& clipBounds,
154 SuperBlitter::SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkIRect& clipBounds, in SuperBlitter() argument
156 : BaseSuperBlitter(realBlitter, ir, clipBounds, isInverse) in SuperBlitter()
439 const SkIRect& clipBounds, bool isInverse) in MaskSuperBlitter() argument
440 : BaseSuperBlitter(realBlitter, ir, clipBounds, isInverse) in MaskSuperBlitter()
451 if (!fClipRect.intersect(clipBounds)) { in MaskSuperBlitter()
[all …]
DSkScan_DAAPath.cpp29 const SkIRect& clipBounds, bool forceRLE, SkDAARecord* record) { in DAAFillPath() argument
160 void gen_alpha_deltas(const SkPath& path, const SkIRect& clippedIR, const SkIRect& clipBounds, in gen_alpha_deltas() argument
166 int count = builder.buildEdges(path, pathContainedInClip ? nullptr : &clipBounds); in gen_alpha_deltas()
328 const SkIRect& clipBounds, bool forceRLE, SkDAARecord* record) { in DAAFillPath() argument
329 bool containedInClip = clipBounds.contains(ir); in DAAFillPath()
337 clippedIR.intersect(clipBounds); in DAAFillPath()
341 if (!isInverse && TryBlitFatAntiRect(blitter, path, clipBounds)) { in DAAFillPath()
370 gen_alpha_deltas(path, clippedIR, clipBounds, deltaMask, blitter, skipRect, in DAAFillPath()
378 gen_alpha_deltas(path, clippedIR, clipBounds, *deltaList, blitter, skipRect, in DAAFillPath()
389 blitter->blitCoverageDeltas(record->fList, clipBounds, isEvenOdd, isInverse, isConvex); in DAAFillPath()
DSkScan.cpp28 const SkIRect& clipBounds = clip->getBounds(); in FillIRect() local
30 if (clipBounds.contains(r)) { in FillIRect()
34 if (rr.intersect(clipBounds)) { in FillIRect()
DSkMaskFilterBase.h103 const SkIRect& clipBounds,
197 const SkIRect& clipBounds,
203 const SkIRect& clipBounds,
DSkDraw_text.cpp76 SkIRect clipBounds = fRC->isBW() ? fRC->bwRgn().getBounds() in paintMasks() local
84 if (!clipBounds.containsNoEmptyCheck(mask.fBounds)) { in paintMasks()
85 if (!storage.intersectNoEmptyCheck(mask.fBounds, clipBounds)) { in paintMasks()
DSkImageFilterCache.h20 const SkIRect& clipBounds, uint32_t srcGenID, const SkIRect& srcSubset) in SkImageFilterCacheKey()
23 , fClipBounds(clipBounds) in SkImageFilterCacheKey()
/external/pdfium/xfa/fwl/
Dcfwl_widgetmgr.cpp424 CFX_RectF clipBounds; in OnDrawWidget() local
431 clipBounds = pGraphics->GetClipRect(); in OnDrawWidget()
432 clipCopy = clipBounds; in OnDrawWidget()
436 clipBounds = CFX_RectF(matrix.a, matrix.b, matrix.c, matrix.d); in OnDrawWidget()
445 clipBounds.Intersect(pWidget->GetClientRect()); in OnDrawWidget()
446 if (!clipBounds.IsEmpty()) in OnDrawWidget()
447 DrawChild(pWidget, clipBounds, pGraphics, &matrix); in OnDrawWidget()
473 CFX_RectF clipBounds(rtWidget); in DrawChild() local
480 CFX_PointF pos = widgetMatrix.Transform(clipBounds.TopLeft()); in DrawChild()
481 clipBounds.left = pos.x; in DrawChild()
[all …]
/external/skia/src/gpu/
DGrBlurUtils.cpp29 static bool clip_bounds_quick_reject(const SkIRect& clipBounds, const SkIRect& rect) { in clip_bounds_quick_reject() argument
30 return clipBounds.isEmpty() || rect.isEmpty() || !SkIRect::Intersects(clipBounds, rect); in clip_bounds_quick_reject()
67 const SkIRect& clipBounds, in sw_draw_with_mask_filter() argument
93 if (!SkDraw::ComputeMaskBounds(devBounds, &clipBounds, filter, &viewMatrix, in sw_draw_with_mask_filter()
119 if (!SkDraw::DrawToMask(devPath, &clipBounds, filter, &viewMatrix, &srcM, in sw_draw_with_mask_filter()
133 if (clip_bounds_quick_reject(clipBounds, dstM.fBounds)) { in sw_draw_with_mask_filter()
DGrTessellator.h46 int PathToVertices(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
49 int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
/external/skqp/src/gpu/
DGrBlurUtils.cpp29 static bool clip_bounds_quick_reject(const SkIRect& clipBounds, const SkIRect& rect) { in clip_bounds_quick_reject() argument
30 return clipBounds.isEmpty() || rect.isEmpty() || !SkIRect::Intersects(clipBounds, rect); in clip_bounds_quick_reject()
67 const SkIRect& clipBounds, in sw_draw_with_mask_filter() argument
93 if (!SkDraw::ComputeMaskBounds(devBounds, &clipBounds, filter, &viewMatrix, in sw_draw_with_mask_filter()
119 if (!SkDraw::DrawToMask(devPath, &clipBounds, filter, &viewMatrix, &srcM, in sw_draw_with_mask_filter()
133 if (clip_bounds_quick_reject(clipBounds, dstM.fBounds)) { in sw_draw_with_mask_filter()
DGrTessellator.h46 int PathToVertices(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
49 int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
/external/skqp/modules/sksg/src/
DSkSGClipEffect.cpp42 const auto clipBounds = fClipNode->revalidate(ic, ctm); in onRevalidate() local
47 return childBounds.intersect(clipBounds) ? childBounds : SkRect::MakeEmpty(); in onRevalidate()
/external/skia/modules/sksg/src/
DSkSGClipEffect.cpp43 const auto clipBounds = fClipNode->revalidate(ic, ctm); in onRevalidate() local
48 return childBounds.intersect(clipBounds) ? childBounds : SkRect::MakeEmpty(); in onRevalidate()

1234