Home
last modified time | relevance | path

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

123

/frameworks/base/libs/hwui/
DCanvasState.cpp157 bool CanvasState::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) { in clipRect() function in android::uirenderer::CanvasState
180 clipRect(bounds.left, bounds.top, bounds.right, bounds.bottom, SkRegion::kIntersect_Op); in setClippingOutline()
222 Rect clipRect(currentClipRect()); in calculateQuickRejectForScissor() local
223 clipRect.snapToPixelBoundaries(); in calculateQuickRejectForScissor()
225 if (!clipRect.intersects(r)) return true; in calculateQuickRejectForScissor()
229 *clipRequired = !clipRect.contains(r); in calculateQuickRejectForScissor()
250 Rect clipRect(currentClipRect()); in quickRejectConservative() local
251 clipRect.snapToPixelBoundaries(); in quickRejectConservative()
253 if (!clipRect.intersects(r)) return true; in quickRejectConservative()
DRenderProperties.cpp175 Rect clipRect; in debugOutputProperties() local
176 getClippingRectForFlags(clipFlags, &clipRect); in debugOutputProperties()
178 (int)clipRect.left, (int)clipRect.top, (int)clipRect.right, (int)clipRect.bottom); in debugOutputProperties()
DSnapshot.cpp247 const Rect& clipRect(mClipArea->getClipRect()); in dump() local
249 clipRect.left, clipRect.top, clipRect.right, clipRect.bottom, mClipArea->isSimple()); in dump()
DRenderNode.cpp447 Rect clipRect; in setViewProperties() local
448 properties().getClippingRectForFlags(clipFlags, &clipRect); in setViewProperties()
450 clipRect.left, clipRect.top, clipRect.right, clipRect.bottom, in setViewProperties()
869 const Rect& clipRect = renderer.getLocalClipBounds(); in issueOperations() local
872 clipRect.left, clipRect.top, clipRect.right, clipRect.bottom); in issueOperations()
DSkiaCanvas.cpp80 virtual bool clipRect(float left, float top, float right, float bottom,
169 virtual void clipRect(const SkRect& rect, SkRegion::Op op, bool antialias) { in clipRect() function in android::ClipCopier
170 m_dstCanvas->clipRect(rect, op, antialias); in clipRect()
420 bool SkiaCanvas::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) { in clipRect() function in android::SkiaCanvas
422 mCanvas->clipRect(rect, op); in clipRect()
440 mCanvas->clipRect(SkRect::MakeEmpty(), op); in clipRegion()
DCanvasState.h120 bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op);
DOpenGLRenderer.cpp201 clip = &(snapshot->layer->clipRect); in startTilingCurrentClip()
728 layer->clipRect.set(clip); in createFboLayer()
956 clipRect(rect.left, rect.top, rect.right, rect.bottom, SkRegion::kIntersect_Op); in composeLayerRegion()
1233 void OpenGLRenderer::setupMergedMultiDraw(const Rect* clipRect) { in setupMergedMultiDraw() argument
1234 if (clipRect != nullptr) { in setupMergedMultiDraw()
1235 … writableSnapshot()->setClip(clipRect->left, clipRect->top, clipRect->right, clipRect->bottom); in setupMergedMultiDraw()
1240 bool enableScissor = (clipRect != nullptr) || mScissorOptimizationDisabled; in setupMergedMultiDraw()
1280 startTiling(layer->clipRect, layer->layer.getHeight()); in attachStencilBufferToLayer()
2181 bool OpenGLRenderer::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) {
2182 return mState.clipRect(left, top, right, bottom, op);
DCanvas.h98 virtual bool clipRect(float left, float top, float right, float bottom,
/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()
DWindowStateAnimator.java1309 final Rect clipRect = mTmpClipRect; in updateSurfaceWindowCrop() local
1312 clipRect.set((mHasClipRect && !fullscreen) ? mClipRect : w.mSystemDecorRect); in updateSurfaceWindowCrop()
1316 clipRect.left -= attrs.surfaceInsets.left; in updateSurfaceWindowCrop()
1317 clipRect.top -= attrs.surfaceInsets.top; in updateSurfaceWindowCrop()
1318 clipRect.right += attrs.surfaceInsets.right; in updateSurfaceWindowCrop()
1319 clipRect.bottom += attrs.surfaceInsets.bottom; in updateSurfaceWindowCrop()
1325 clipRect.intersect(mClipRect); in updateSurfaceWindowCrop()
1330 clipRect.offset(attrs.surfaceInsets.left, attrs.surfaceInsets.top); in updateSurfaceWindowCrop()
1332 if (!clipRect.equals(mLastClipRect)) { in updateSurfaceWindowCrop()
1333 mLastClipRect.set(clipRect); 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/libs/hwui/unit_tests/
DClipAreaTests.cpp104 Rect clipRect(area.getClipRect()); in TEST() local
105 clipRect.dump("clipRect"); in TEST()
108 EXPECT_EQ(expected, clipRect); in TEST()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DHorizontalGridView.java330 canvas.clipRect(lowEdge + (mFadingLowEdge ? mLowFadeShaderLength : 0), 0, in draw()
344 tmpCanvas.clipRect(0, 0, mLowFadeShaderLength, getHeight()); in draw()
364 tmpCanvas.clipRect(0, 0, mHighFadeShaderLength, getHeight()); in draw()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DViewGroup_Delegate.java83 canvas.clipRect(newBounds, Op.REPLACE); in drawShadow()
85 canvas.clipRect(clipBounds, Op.REPLACE); in drawShadow()
/frameworks/support/v4/java/android/support/v4/widget/
DSwipeProgressBar.java145 canvas.clipRect(mBounds); in draw()
228 canvas.clipRect(mBounds); in draw()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardPreviewContainer.java38 canvas.clipRect(0, getHeight() - getPaddingBottom(), getWidth(), getHeight());
/frameworks/base/graphics/java/android/graphics/drawable/
DPictureDrawable.java67 canvas.clipRect(bounds); in draw()
/frameworks/base/core/java/com/android/internal/transition/
DEpicenterTranslateClipReveal.java203 final Rect clipRect = (Rect) values.values.get(PROPNAME_CLIP); in getBestRect() local
204 if (clipRect == null) { in getBestRect()
207 return clipRect; in getBestRect()
/frameworks/base/graphics/java/android/graphics/
DCanvas.java691 public boolean clipRect(@NonNull RectF rect, @NonNull Region.Op op) { in clipRect() method in Canvas
704 public boolean clipRect(@NonNull Rect rect, @NonNull Region.Op op) { in clipRect() method in Canvas
716 public boolean clipRect(@NonNull RectF rect) { in clipRect() method in Canvas
728 public boolean clipRect(@NonNull Rect rect) { in clipRect() method in Canvas
748 public boolean clipRect(float left, float top, float right, float bottom, in clipRect() method in Canvas
766 public boolean clipRect(float left, float top, float right, float bottom) { in clipRect() method in Canvas
784 public boolean clipRect(int left, int top, int right, int bottom) { in clipRect() method in Canvas
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DStickyHeaderListView.java123 canvas.clipRect(0, 0, drawTarget.getWidth(), drawTarget.getHeight()); in draw()
/frameworks/base/core/jni/android/graphics/pdf/
DPdfDocument.cpp97 canvas->clipRect(page->mContentRect); in write()
/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()

123