Home
last modified time | relevance | path

Searched refs:clipBounds (Results 1 – 25 of 90) 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.cpp385 SkIRect clipBounds; in test_clip_bound_opt() local
392 clipBounds = canvas->getDeviceClipBounds(); in test_clip_bound_opt()
393 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft); in test_clip_bound_opt()
394 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop); in test_clip_bound_opt()
395 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom); in test_clip_bound_opt()
396 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight); in test_clip_bound_opt()
402 clipBounds = canvas->getDeviceClipBounds(); in test_clip_bound_opt()
403 REPORTER_ASSERT(reporter, 7 == clipBounds.fLeft); in test_clip_bound_opt()
404 REPORTER_ASSERT(reporter, 7 == clipBounds.fTop); in test_clip_bound_opt()
405 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom); in test_clip_bound_opt()
[all …]
DVkDrawableTest.cpp105 const SkIRect& clipBounds, in DrawHandlerImport() argument
112 , fClipBounds(clipBounds) in DrawHandlerImport()
137 static void ImportDraw(TestDrawable* td, const SkMatrix& matrix, const SkIRect& clipBounds, in ImportDraw() argument
146 canvas->clipRect(SkRect::Make(clipBounds)); in ImportDraw()
190 const SkIRect& clipBounds, in onSnapGpuDrawHandler() argument
198 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.cpp79 innerClipBounds = this->getInput(0)->filterBounds(ctx.clipBounds(), ctx.ctm(), in onFilterImage()
80 kReverse_MapDirection, &ctx.clipBounds()); in onFilterImage()
93 SkIRect clipBounds = ctx.clipBounds(); in onFilterImage() local
94 clipBounds.offset(-innerOffset.x(), -innerOffset.y()); in onFilterImage()
100 Context outerContext(outerMatrix, clipBounds, ctx.cache(), ctx.colorType(), ctx.colorSpace(), in onFilterImage()
/external/skia/src/core/
DSkScan_AntiPath.cpp44 const SkIRect& clipBounds, bool isInverse);
76 const SkIRect& clipBounds, bool isInverse) { in BaseSuperBlitter() argument
83 sectBounds = clipBounds; in BaseSuperBlitter()
85 if (!sectBounds.intersect(ir, clipBounds)) { in BaseSuperBlitter()
106 SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkIRect& clipBounds,
152 SuperBlitter::SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkIRect& clipBounds, in SuperBlitter() argument
154 : BaseSuperBlitter(realBlitter, ir, clipBounds, isInverse) in SuperBlitter()
437 const SkIRect& clipBounds, bool isInverse) in MaskSuperBlitter() argument
438 : BaseSuperBlitter(realBlitter, ir, clipBounds, isInverse) in MaskSuperBlitter()
449 if (!fClipRect.intersect(clipBounds)) { in MaskSuperBlitter()
[all …]
DSkScan.cpp25 const SkIRect& clipBounds = clip->getBounds(); in FillIRect() local
27 if (clipBounds.contains(r)) { in FillIRect()
31 if (rr.intersect(clipBounds)) { in FillIRect()
DSkMaskFilterBase.h108 const SkIRect& clipBounds,
204 const SkIRect& clipBounds,
210 const SkIRect& clipBounds,
DSkDraw_text.cpp82 SkIRect clipBounds = fRC->isBW() ? fRC->bwRgn().getBounds() in paintMasks() local
93 if (!clipBounds.containsNoEmptyCheck(mask.fBounds)) { in paintMasks()
94 if (!storage.intersect(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()
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/skia/docs/examples/
DImage_makeWithFilter.cpp11 SkIRect clipBounds = image->bounds(); in draw() local
12 clipBounds.outset(60, 60); in draw()
16 subset, clipBounds, &outSubset, &offset)); in draw()
/external/skia/src/gpu/
DGrBlurUtils.cpp33 static bool clip_bounds_quick_reject(const SkIRect& clipBounds, const SkIRect& rect) { in clip_bounds_quick_reject() argument
34 return clipBounds.isEmpty() || rect.isEmpty() || !SkIRect::Intersects(clipBounds, rect); in clip_bounds_quick_reject()
99 const SkIRect& clipBounds, in sw_create_filtered_mask() argument
133 if (!SkDraw::DrawToMask(devPath, &clipBounds, filter, &viewMatrix, &srcM, in sw_create_filtered_mask()
147 if (clip_bounds_quick_reject(clipBounds, dstM.fBounds)) { in sw_create_filtered_mask()
368 const SkIRect& clipBounds, in hw_create_filtered_mask() argument
373 clipBounds, in hw_create_filtered_mask()
379 if (clip_bounds_quick_reject(clipBounds, *maskRect)) { in hw_create_filtered_mask()
/external/skia/fuzz/
DFuzzTriangulation.cpp26 SkRect clipBounds = path.getBounds(); in DEF_FUZZ() local
31 GrTriangulator::PathToTriangles(path, tol, clipBounds, &allocator, &isLinear); in DEF_FUZZ()
/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/pdfium/xfa/fwl/
Dcfwl_widgetmgr.cpp330 CFX_RectF clipBounds; in OnDrawWidget() local
333 clipBounds = pGraphics->GetClipRect(); in OnDrawWidget()
334 clipCopy = clipBounds; in OnDrawWidget()
336 if (!clipBounds.IsEmpty()) in OnDrawWidget()
337 DrawChild(pWidget, clipBounds, pGraphics, &matrix); in OnDrawWidget()
362 CFX_RectF clipBounds(rtWidget); in DrawChild() local
371 DrawChild(child, clipBounds, pGraphics, &widgetMatrix); in DrawChild()
/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