Searched defs:clipRegion (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/libs/hwui/pipeline/skia/
H A DGLFunctorDrawable.cpp76 SkRegion clipRegion; local
77 canvas->temporary_internal_getRgnClip(&clipRegion);
78 if (CC_UNLIKELY(clipRegion.isComplex())) {
87 SkRegion::Cliperator it(clipRegion, ibounds);
98 } else if (clipRegion.isEmpty()) {
104 setScissor(info.height, clipRegion.getBounds());
/frameworks/base/libs/hwui/tests/unit/
H A DClipAreaTests.cpp106 SkRegion clipRegion(area.getClipRegion());
107 auto skRect(clipRegion.getBounds());
166 auto clipRegion = reinterpret_cast<const ClipRegion*>(serializedClip); local
167 EXPECT_EQ(SkIRect::MakeWH(200, 200), clipRegion->region.getBounds())
169 EXPECT_EQ(Rect(200, 200), clipRegion->rect);
250 auto clipRegion = reinterpret_cast<const ClipRegion*>(resolvedClip); local
251 EXPECT_EQ(SkIRect::MakeLTRB(60, 20, 160, 200), clipRegion->region.getBounds());
298 auto clipRegion = reinterpret_cast<const ClipRegion*>(resolvedClip); local
299 EXPECT_EQ(SkIRect::MakeLTRB(100, 100, 300, 300), clipRegion->region.getBounds());
/frameworks/base/libs/hwui/
H A DClipArea.cpp236 void ClipArea::clipRegion(const SkRegion& region, SkRegion::Op op) { function in class:android::uirenderer::ClipArea
528 clipRegion(region, SkRegion::kIntersect_Op);
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java969 * current matrix, clipRegion() assumes its argument is already in the
982 public boolean clipRegion(@NonNull Region region, @NonNull Region.Op op) { method in class:Canvas
989 * current matrix, clipRegion() assumes its argument is already in the
1001 public boolean clipRegion(@NonNull Region region) { method in class:Canvas

Completed in 164 milliseconds