Searched refs:clipRegion (Results 1 - 20 of 20) sorted by relevance

/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());
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DClipRegion2Activity.java76 canvas.clipRegion(mRegion);
/frameworks/base/libs/hwui/
H A DCanvasState.h127 bool clipRegion(const SkRegion* region, SkRegion::Op op);
H A DClipArea.h149 void clipRegion(const SkRegion& region, SkRegion::Op op);
H A DCanvasState.cpp218 bool CanvasState::clipRegion(const SkRegion* region, SkRegion::Op op) { function in class:android::uirenderer::CanvasState
H A DSnapshot.cpp88 mClipArea->clipRegion(region, op);
H A DClipArea.cpp236 void ClipArea::clipRegion(const SkRegion& region, SkRegion::Op op) { function in class:android::uirenderer::ClipArea
532 clipRegion(region, SkRegion::kIntersect_Op);
H A DDisplayListCanvas.h159 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) override;
H A DRecordingCanvas.h136 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) override;
H A DDisplayListCanvas.cpp207 bool DisplayListCanvas::clipRegion(const SkRegion* region, SkRegion::Op op) { function in class:android::uirenderer::DisplayListCanvas
210 return mState.clipRegion(region, op);
H A DRecordingCanvas.cpp239 bool RecordingCanvas::clipRegion(const SkRegion* region, SkRegion::Op op) { function in class:android::uirenderer::RecordingCanvas
240 return mState.clipRegion(region, op);
H A DSkiaCanvas.cpp109 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) override;
503 bool SkiaCanvas::clipRegion(const SkRegion* region, SkRegion::Op op) { function in class:android::SkiaCanvas
H A DOpenGLRenderer.cpp1386 if (!currentSnapshot()->clipRegion->isEmpty()) {
1389 drawRegionRects(*(currentSnapshot()->clipRegion, paint);
2078 bool OpenGLRenderer::clipRegion(const SkRegion* region, SkRegion::Op op) { function in class:android::uirenderer::OpenGLRenderer
2079 return mState.clipRegion(region, op);
H A DOpenGLRenderer.h321 bool clipRegion(const SkRegion* region, SkRegion::Op op);
484 * is defined by the current snapshot's clipRegion member.
H A DSkiaCanvasProxy.cpp395 mCanvas->clipRegion(&region, op);
H A DDisplayListOp.h584 renderer.clipRegion(mRegion, mOp);
/frameworks/base/libs/hwui/hwui/
H A DCanvas.h164 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) = 0;
/frameworks/base/core/java/android/inputmethodservice/
H A DKeyboardView.java671 final Rect clipRegion = mClipRegion;
680 if (invalidKey != null && canvas.getClipBounds(clipRegion)) {
681 // Is clipRegion completely contained within the invalidated key?
682 if (invalidKey.x + kbdPaddingLeft - 1 <= clipRegion.left &&
683 invalidKey.y + kbdPaddingTop - 1 <= clipRegion.top &&
684 invalidKey.x + invalidKey.width + kbdPaddingLeft + 1 >= clipRegion.right &&
685 invalidKey.y + invalidKey.height + kbdPaddingTop + 1 >= clipRegion.bottom) {
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp201 static jboolean clipRegion(JNIEnv* env, jobject, jlong canvasHandle, jlong deviceRgnHandle, function in namespace:android::CanvasJNI
205 bool nonEmptyClip = get_canvas(canvasHandle)->clipRegion(deviceRgn, op);
601 {"native_clipRegion","!(JJI)Z", (void*) CanvasJNI::clipRegion},
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java807 * current matrix, clipRegion() assumes its argument is already in the
819 public boolean clipRegion(@NonNull Region region, @NonNull Region.Op op) { method in class:Canvas
826 * current matrix, clipRegion() assumes its argument is already in the
837 public boolean clipRegion(@NonNull Region region) { method in class:Canvas
838 return clipRegion(region, Region.Op.INTERSECT);

Completed in 329 milliseconds