Home
last modified time | relevance | path

Searched refs:clipBounds (Results 1 - 25 of 38) sorted by relevance

12

/third_party/skia/src/effects/imagefilters/
H A DSkComposeImageFilter.cpp79 innerClipBounds = this->getInput(0)->filterBounds(ctx.clipBounds(), ctx.ctm(), in onFilterImage()
80 kReverse_MapDirection, &ctx.clipBounds()); in onFilterImage()
90 // CTM/clipBounds modifications for the outerContext can go away. 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()
/third_party/skia/src/core/
H A DSkScan_AntiPath.cpp48 const SkIRect& clipBounds, bool isInverse);
80 const SkIRect& clipBounds, bool isInverse) { in BaseSuperBlitter()
87 sectBounds = clipBounds; in BaseSuperBlitter()
89 if (!sectBounds.intersect(ir, clipBounds)) { in BaseSuperBlitter()
110 SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkIRect& clipBounds,
156 SuperBlitter::SuperBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkIRect& clipBounds, in SuperBlitter() argument
158 : BaseSuperBlitter(realBlitter, ir, clipBounds, isInverse) in SuperBlitter()
441 const SkIRect& clipBounds, bool isInverse)
442 : BaseSuperBlitter(realBlitter, ir, clipBounds, isInverse)
453 if (!fClipRect.intersect(clipBounds)) {
79 BaseSuperBlitter(SkBlitter* realBlit, const SkIRect& ir, const SkIRect& clipBounds, bool isInverse) BaseSuperBlitter() argument
[all...]
H A DSkScan.cpp25 const SkIRect& clipBounds = clip->getBounds(); in FillIRect() local
27 if (clipBounds.contains(r)) { in FillIRect()
31 if (rr.intersect(clipBounds)) { in FillIRect()
H A DSkMaskFilterBase.h108 const SkIRect& clipBounds,
219 const SkIRect& clipBounds,
225 const SkIRect& clipBounds,
H A DSkImageFilterCache.h20 const SkIRect& clipBounds, uint32_t srcGenID, const SkIRect& srcSubset) in SkImageFilterCacheKey()
23 , fClipBounds(clipBounds) in SkImageFilterCacheKey()
49 // This cache maps from (filter's unique ID + CTM + clipBounds + src bitmap generation ID) to result
H A 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()
H A DSkScan_AAAPath.cpp144 const SkIRect& clipBounds,
211 const SkIRect& clipBounds, in MaskAdditiveBlitter()
227 if (!fClipRect.intersect(clipBounds)) { in MaskAdditiveBlitter()
292 const SkIRect& clipBounds,
377 const SkIRect& clipBounds,
385 sectBounds = clipBounds;
387 if (!sectBounds.intersect(ir, clipBounds)) {
470 const SkIRect& clipBounds,
472 : RunBasedAdditiveBlitter(realBlitter, ir, clipBounds, isInverse) {}
1960 const SkIRect& clipBounds,
209 MaskAdditiveBlitter(SkBlitter* realBlitter, const SkIRect& ir, const SkIRect& clipBounds, bool isInverse) MaskAdditiveBlitter() argument
[all...]
H A DSkDraw.h91 static bool ComputeMaskBounds(const SkRect& devPathBounds, const SkIRect* clipBounds,
100 static bool DrawToMask(const SkPath& devPath, const SkIRect* clipBounds,
H A DSkScan.h95 const SkIRect& clipBounds, bool forceRLE);
97 const SkIRect& clipBounds, bool forceRLE);
H A DSkDraw.cpp266 SkRect clipBounds = SkRect::Make(rc->getBounds()); in init() local
269 if (!SkRectPriv::FitsInFixed(clipBounds)) { in init()
276 fClipBounds = clipBounds; in init()
1207 bool SkDraw::ComputeMaskBounds(const SkRect& devPathBounds, const SkIRect* clipBounds, in ComputeMaskBounds() argument
1228 if (clipBounds) { in ComputeMaskBounds()
1236 if (!bounds->intersect(clipBounds->makeOutset(std::min(margin.fX, MAX_MARGIN), in ComputeMaskBounds()
1277 bool SkDraw::DrawToMask(const SkPath& devPath, const SkIRect* clipBounds, in DrawToMask() argument
1286 if (!ComputeMaskBounds(devPath.getBounds(), clipBounds, filter, in DrawToMask()
H A DSkScan_Antihair.cpp547 SkRect clipBounds;
549 clipBounds.set(clip->getBounds());
559 clipBounds.outset(SK_Scalar1, SK_Scalar1);
571 if (clip && !SkLineClipper::IntersectLine(pts, clipBounds, pts)) {
718 const SkIRect& clipBounds = clip->getBounds();
720 if (clipBounds.contains(outerBounds)) {
725 XRect_set(&tmpR, clipBounds);
H A DSkMaskFilter.cpp299 const SkIRect& clipBounds, NinePatch*) const { in filterRRectToNine()
305 const SkIRect& clipBounds, NinePatch*) const { in filterRectsToNine()
332 const SkIRect& clipBounds, in canFilterMaskGPU()
298 filterRRectToNine(const SkRRect&, const SkMatrix&, const SkIRect& clipBounds, NinePatch*) const filterRRectToNine() argument
304 filterRectsToNine(const SkRect[], int count, const SkMatrix&, const SkIRect& clipBounds, NinePatch*) const filterRectsToNine() argument
330 canFilterMaskGPU(const GrStyledShape& shape, const SkIRect& devSpaceShapeBounds, const SkIRect& clipBounds, const SkMatrix& ctm, SkIRect* maskRect, const bool canUseSDFBlur) const canFilterMaskGPU() argument
H A DSkImageFilterTypes.h579 Context(const SkMatrix& layerMatrix, const SkIRect& clipBounds, SkImageFilterCache* cache, in Context() argument
582 , fDesiredOutput(clipBounds) in Context()
615 const SkIRect& clipBounds() const { return static_cast<const SkIRect&>(fDesiredOutput); } in clipBounds() function in skif::Context
/third_party/skia/docs/examples/
H A DImage_makeWithFilter.cpp11 SkIRect clipBounds = image->bounds(); in REG_FIDDLE() local
12 clipBounds.outset(60, 60); in REG_FIDDLE()
16 subset, clipBounds, &outSubset, &offset)); in REG_FIDDLE()
/third_party/skia/tests/
H A DPictureTest.cpp384 SkIRect clipBounds; in test_clip_bound_opt() local
391 clipBounds = canvas->getDeviceClipBounds(); in test_clip_bound_opt()
392 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft); in test_clip_bound_opt()
393 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop); in test_clip_bound_opt()
394 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom); in test_clip_bound_opt()
395 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight); in test_clip_bound_opt()
401 clipBounds = canvas->getDeviceClipBounds(); in test_clip_bound_opt()
402 REPORTER_ASSERT(reporter, 7 == clipBounds.fLeft); in test_clip_bound_opt()
403 REPORTER_ASSERT(reporter, 7 == clipBounds.fTop); in test_clip_bound_opt()
404 REPORTER_ASSERT(reporter, 8 == clipBounds in test_clip_bound_opt()
[all...]
H A DVkDrawableTest.cpp105 const SkIRect& clipBounds, in DrawHandlerImport()
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,
198 clipBounds, bufferInfo);
103 DrawHandlerImport(TestDrawable* td, DrawProc drawProc, SubmitProc submitProc, const SkMatrix& matrix, const SkIRect& clipBounds, const SkImageInfo& bufferInfo) DrawHandlerImport() argument
/third_party/skia/fuzz/
H A DFuzzTriangulation.cpp24 // TODO(robertphillips): messing w/ the clipBounds might be another axis to fuzz. in DEF_FUZZ()
26 SkRect clipBounds = path.getBounds(); in DEF_FUZZ() local
31 int count = GrTriangulator::PathToTriangles(path, tol, clipBounds, &allocator, &isLinear); in DEF_FUZZ()
/third_party/skia/src/gpu/
H A DGrBlurUtils.cpp37 static bool clip_bounds_quick_reject(const SkIRect& clipBounds, const SkIRect& rect) { in clip_bounds_quick_reject() argument
38 return clipBounds.isEmpty() || rect.isEmpty() || !SkIRect::Intersects(clipBounds, rect); in clip_bounds_quick_reject()
103 const SkIRect& clipBounds, in sw_create_filtered_mask()
137 if (!SkDraw::DrawToMask(devPath, &clipBounds, filter, &viewMatrix, &srcM, in sw_create_filtered_mask()
151 if (clip_bounds_quick_reject(clipBounds, dstM.fBounds)) { in sw_create_filtered_mask()
383 const SkIRect& clipBounds, in hw_create_filtered_mask()
389 clipBounds, in hw_create_filtered_mask()
396 if (clip_bounds_quick_reject(clipBounds, *maskRect)) { in hw_create_filtered_mask()
98 sw_create_filtered_mask(GrRecordingContext* rContext, const SkMatrix& viewMatrix, const GrStyledShape& shape, const SkMaskFilter* filter, const SkIRect& unclippedDevShapeBounds, const SkIRect& clipBounds, SkIRect* drawRect, GrUniqueKey* key) sw_create_filtered_mask() argument
377 hw_create_filtered_mask(GrDirectContext* dContext, skgpu::v1::SurfaceDrawContext* sdc, const SkMatrix& viewMatrix, const GrStyledShape& shape, const SkMaskFilterBase* filter, const SkIRect& unclippedDevShapeBounds, const SkIRect& clipBounds, SkIRect* maskRect, GrUniqueKey* key, const bool canUseSDFBlur = false) hw_create_filtered_mask() argument
/third_party/skia/modules/sksg/src/
H A DSkSGClipEffect.cpp43 const auto clipBounds = fClipNode->revalidate(ic, ctm); in onRevalidate() local
48 return childBounds.intersect(clipBounds) ? childBounds : SkRect::MakeEmpty(); in onRevalidate()
/third_party/skia/include/core/
H A DSkDrawable.h83 const SkIRect& clipBounds, in snapGpuDrawHandler()
85 return this->onSnapGpuDrawHandler(backendApi, matrix, clipBounds, bufferInfo); in snapGpuDrawHandler()
138 const SkIRect& /*clipBounds*/, in onSnapGpuDrawHandler()
143 // TODO: Delete this once Android gets updated to take the clipBounds version above.
81 snapGpuDrawHandler(GrBackendApi backendApi, const SkMatrix& matrix, const SkIRect& clipBounds, const SkImageInfo& bufferInfo) snapGpuDrawHandler() argument
/third_party/skia/src/gpu/geometry/
H A DGrAATriangulator.h16 static int PathToAATriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds, in PathToAATriangles() argument
23 Poly* polys = aaTriangulator.pathToPolys(tolerance, clipBounds, &isLinear); in PathToAATriangles()
H A DGrTriangulator.h30 static int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds, in PathToTriangles() argument
37 Poly* polys = triangulator.pathToPolys(tolerance, clipBounds, isLinear); in PathToTriangles()
63 void pathToContours(float tolerance, const SkRect& clipBounds, VertexList* contours,
172 Poly* pathToPolys(float tolerance, const SkRect& clipBounds,
/third_party/skia/gm/
H A Dimagefiltersclipped.cpp55 const SkRect& primBounds, const SkRect& clipBounds) { in draw_clipped_filter()
61 canvas->clipRect(clipBounds); in draw_clipped_filter()
54 draw_clipped_filter(SkCanvas* canvas, sk_sp<SkImageFilter> filter, size_t i, const SkRect& primBounds, const SkRect& clipBounds) draw_clipped_filter() argument
/third_party/skia/src/gpu/ops/
H A DTriangulatingPathRenderer.cpp263 SkRect clipBounds = SkRect::Make(devClipBounds); in Triangulate() local
269 vmi.mapRect(&clipBounds); in Triangulate()
275 return GrTriangulator::PathToTriangles(path, tol, clipBounds, allocator, isLinear); in Triangulate()
352 SkRect clipBounds = SkRect::Make(fDevClipBounds); in createAAMesh() local
358 int vertexCount = GrAATriangulator::PathToAATriangles(path, tol, clipBounds, &allocator); in createAAMesh()
H A DAtlasPathRenderer.cpp48 bool is_visible(const SkRect& pathDevBounds, const SkIRect& clipBounds) { in is_visible() argument
56 float2 clipTopLeft = skvx::cast<float>(int2::Load(&clipBounds.fLeft)); in is_visible()
57 float2 clipBotRight = skvx::cast<float>(int2::Load(&clipBounds.fRight)); in is_visible()
58 static_assert(sizeof(clipBounds) == sizeof(clipTopLeft) + sizeof(clipBotRight)); in is_visible()

Completed in 18 milliseconds

12