Home
last modified time | relevance | path

Searched refs:clipRect (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/base/libs/hwui/
DSnapshot.cpp40 clipRect = &mClipRectRoot; in Snapshot()
68 mClipRectRoot.set(*s->clipRect); in Snapshot()
69 clipRect = &mClipRectRoot; in Snapshot()
75 clipRect = s->clipRect; in Snapshot()
93 clipRegion->setRect(clipRect->left, clipRect->top, clipRect->right, clipRect->bottom); in ensureClipRegion()
100 clipRect->set(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom); in copyClipRectFromRegion()
106 clipRect->setEmpty(); in copyClipRectFromRegion()
141 clipped = clipRect->intersect(r); in clipTransformed()
143 clipRect->setEmpty(); in clipTransformed()
169 clipRect->set(left, top, right, bottom); in setClip()
[all …]
DStatefulBaseRenderer.cpp153 bool StatefulBaseRenderer::clipRect(float left, float top, float right, float bottom, SkRegion::Op … in clipRect() function in android::uirenderer::StatefulBaseRenderer
156 return !mSnapshot->clipRect->isEmpty(); in clipRect()
179 Rect* bounds = mSnapshot->previous->clipRect; in clipPath()
189 return !mSnapshot->clipRect->isEmpty(); in clipPath()
194 return !mSnapshot->clipRect->isEmpty(); in clipRegion()
205 clipRect(bounds.left, bounds.top, bounds.right, bounds.bottom, SkRegion::kIntersect_Op); in setClippingOutline()
244 Rect clipRect(*currentClipRect()); in calculateQuickRejectForScissor() local
245 clipRect.snapToPixelBoundaries(); in calculateQuickRejectForScissor()
247 if (!clipRect.intersects(r)) return true; in calculateQuickRejectForScissor()
251 *clipRequired = !clipRect.contains(r); in calculateQuickRejectForScissor()
[all …]
DRenderProperties.cpp173 Rect clipRect; in debugOutputProperties() local
174 getClippingRectForFlags(clipFlags, &clipRect); in debugOutputProperties()
176 (int)clipRect.left, (int)clipRect.top, (int)clipRect.right, (int)clipRect.bottom); in debugOutputProperties()
DRenderNode.cpp443 Rect clipRect; in setViewProperties() local
444 properties().getClippingRectForFlags(clipFlags, &clipRect); in setViewProperties()
446 clipRect.left, clipRect.top, clipRect.right, clipRect.bottom, in setViewProperties()
889 const Rect& clipRect = renderer.getLocalClipBounds(); in issueOperations() local
892 clipRect.left, clipRect.top, clipRect.right, clipRect.bottom); in issueOperations()
DStatefulBaseRenderer.h88 virtual bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op);
137 return mSnapshot->clipRect; in currentClipRect()
DSnapshot.h145 const Rect& getRenderTargetClip() { return *clipRect; } in getRenderTargetClip()
239 Rect* clipRect; variable
/frameworks/base/services/core/java/com/android/server/wm/
DStrictModeFlash.java77 c.clipRect(new Rect(0, 0, dw, mThickness), Region.Op.REPLACE); in drawIfNeeded()
80 c.clipRect(new Rect(0, 0, mThickness, dh), Region.Op.REPLACE); in drawIfNeeded()
83 c.clipRect(new Rect(dw - mThickness, 0, dw, dh), Region.Op.REPLACE); in drawIfNeeded()
86 c.clipRect(new Rect(0, dh - mThickness, dw, dh), Region.Op.REPLACE); in drawIfNeeded()
DFocusedStackFrame.java84 c.clipRect(mTmpDrawRect, Region.Op.REPLACE); in draw()
88 c.clipRect(mTmpDrawRect, Region.Op.REPLACE); in draw()
92 c.clipRect(mTmpDrawRect, Region.Op.REPLACE); in draw()
96 c.clipRect(mTmpDrawRect, Region.Op.REPLACE); in draw()
DWindowStateAnimator.java1328 final Rect clipRect = mTmpClipRect; in updateSurfaceWindowCrop() local
1329 clipRect.set(w.mSystemDecorRect); in updateSurfaceWindowCrop()
1333 clipRect.left -= attrs.surfaceInsets.left; in updateSurfaceWindowCrop()
1334 clipRect.top -= attrs.surfaceInsets.top; in updateSurfaceWindowCrop()
1335 clipRect.right += attrs.surfaceInsets.right; in updateSurfaceWindowCrop()
1336 clipRect.bottom += attrs.surfaceInsets.bottom; in updateSurfaceWindowCrop()
1348 clipRect.intersect(mClipRect); in updateSurfaceWindowCrop()
1350 final int offsetTop = Math.max(clipRect.top, w.mContentInsets.top); in updateSurfaceWindowCrop()
1351 clipRect.offset(0, -offsetTop); in updateSurfaceWindowCrop()
1352 clipRect.intersect(mClipRect); in updateSurfaceWindowCrop()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DAlphaLayersActivity.java87 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f); in dispatchDraw()
97 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f); in dispatchDraw()
107 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f); in dispatchDraw()
117 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f); in dispatchDraw()
DBitmapMeshActivity.java77 canvas.clipRect(0.0f, 0.0f, 80.0f, 80.0f); in onDraw()
DQuickRejectActivity.java82 canvas.clipRect(0.0f, 0.0f, 40.0f, 40.0f); in onDraw()
DTextActivity.java152 canvas.clipRect(150.0f, 220.0f, 450.0f, 320.0f); in onDraw()
/frameworks/base/core/jni/
Dandroid_view_TextureView.cpp173 SkRect clipRect; in android_view_TextureView_lockCanvas() local
174 clipRect.set(rect.left, rect.top, rect.right, rect.bottom); in android_view_TextureView_lockCanvas()
176 nativeCanvas->clipRect(clipRect); in android_view_TextureView_lockCanvas()
Dandroid_view_GraphicBuffer.cpp205 SkRect clipRect; in android_view_GraphicBuffer_lockCanvas() local
206 clipRect.set(rect.left, rect.top, rect.right, rect.bottom); in android_view_GraphicBuffer_lockCanvas()
208 nativeCanvas->clipRect(clipRect); in android_view_GraphicBuffer_lockCanvas()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DHorizontalGridView.java319 canvas.clipRect(lowEdge + (mFadingLowEdge ? mLowFadeShaderLength : 0), 0, in draw()
333 tmpCanvas.clipRect(0, 0, mLowFadeShaderLength, getHeight()); in draw()
353 tmpCanvas.clipRect(0, 0, mHighFadeShaderLength, getHeight()); in draw()
/frameworks/base/core/jni/android/graphics/
DSkiaCanvas.cpp84 virtual bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op);
179 virtual void clipRect(const SkRect& rect, SkRegion::Op op, bool antialias) { in clipRect() function in android::ClipCopier
180 m_dstCanvas->clipRect(rect, op, antialias); in clipRect()
430 bool SkiaCanvas::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) { in clipRect() function in android::SkiaCanvas
432 mCanvas->clipRect(rect, op); in clipRect()
450 mCanvas->clipRect(SkRect::MakeEmpty(), op); in clipRegion()
/frameworks/support/v4/java/android/support/v4/widget/
DSwipeProgressBar.java144 canvas.clipRect(mBounds); in draw()
227 canvas.clipRect(mBounds); in draw()
/frameworks/base/graphics/java/android/graphics/drawable/
DPictureDrawable.java67 canvas.clipRect(bounds); in draw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardPreviewContainer.java39 canvas.clipRect(0, getHeight() - getPaddingBottom(), getWidth(), getHeight());
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DViewGroup_Delegate.java87 canvas.clipRect(newBounds, Op.REPLACE); in drawShadow()
89 canvas.clipRect(clipBounds, Op.REPLACE); in drawShadow()
/frameworks/base/core/java/android/view/
DGLES20Canvas.java292 public boolean clipRect(float left, float top, float right, float bottom) { in clipRect() method in GLES20Canvas
300 public boolean clipRect(float left, float top, float right, float bottom, Region.Op op) { in clipRect() method in GLES20Canvas
305 public boolean clipRect(int left, int top, int right, int bottom) { in clipRect() method in GLES20Canvas
313 public boolean clipRect(Rect rect) { in clipRect() method in GLES20Canvas
319 public boolean clipRect(Rect rect, Region.Op op) { in clipRect() method in GLES20Canvas
324 public boolean clipRect(RectF rect) { in clipRect() method in GLES20Canvas
330 public boolean clipRect(RectF rect, Region.Op op) { in clipRect() method in GLES20Canvas
/frameworks/base/graphics/java/android/graphics/
DCanvas.java704 public boolean clipRect(@NonNull RectF rect, @NonNull Region.Op op) { in clipRect() method in Canvas
717 public boolean clipRect(@NonNull Rect rect, @NonNull Region.Op op) { in clipRect() method in Canvas
729 public boolean clipRect(@NonNull RectF rect) { in clipRect() method in Canvas
741 public boolean clipRect(@NonNull Rect rect) { in clipRect() method in Canvas
761 public boolean clipRect(float left, float top, float right, float bottom, in clipRect() method in Canvas
779 public boolean clipRect(float left, float top, float right, float bottom) { in clipRect() method in Canvas
797 public boolean clipRect(int left, int top, int right, int bottom) { in clipRect() method in Canvas
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDeadZone.java157 can.clipRect(0, 0, mVertical ? size : can.getWidth(), mVertical ? can.getHeight() : size); in onDraw()
/frameworks/base/include/private/graphics/
DCanvas.h78 virtual bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op) = 0;

123