Searched refs:clipRect (Results 1 - 25 of 81) sorted by relevance

1234

/frameworks/base/libs/hwui/tests/unit/
H A DOpDumperTests.cpp37 ClipRect clipRect(uirenderer::Rect(50, 50));
38 op.localClip = &clipRect;
H A DCanvasStateTests.cpp71 state.clipRect(0, 0, 100, 100, SkRegion::kIntersect_Op);
74 state.clipRect(10, 10, 200, 200, SkRegion::kIntersect_Op);
77 state.clipRect(50, 50, 150, 150, SkRegion::kReplace_Op);
91 state.clipRect(0, 0, 200, 200, SkRegion::kIntersect_Op);
100 state.clipRect(50, 50, 150, 150, SkRegion::kDifference_Op);
124 state.clipRect(0, 0, 10, 10, SkRegion::kIntersect_Op);
148 state.clipRect(0, 0, 10, 10, SkRegion::kIntersect_Op);
H A DRecordingCanvasTests.cpp57 TEST(RecordingCanvas, clipRect) {
60 canvas.clipRect(0, 0, 100, 100, SkRegion::kIntersect_Op);
76 canvas.clipRect(0, 0, 100, 100, SkRegion::kIntersect_Op);
77 canvas.clipRect(100, 100, 200, 200, SkRegion::kIntersect_Op);
393 canvas.clipRect(10, 20, 190, 180, SkRegion::kIntersect_Op);
412 canvas.clipRect(-1000, -1000, 1000, 1000, SkRegion::kReplace_Op);
506 canvas.clipRect(0, 0, 0, 0, SkRegion::kIntersect_Op); // empty clip, reject node
559 canvas.clipRect(-100, -100, 300, 300, SkRegion::kIntersect_Op);
575 canvas.clipRect(-10, -10, 110, 110, SkRegion::kReplace_Op);
613 canvas.clipRect(
[all...]
/frameworks/base/libs/hwui/
H A DBakedOpState.cpp57 const Rect& clipRect = clipState->rect; local
58 if (CC_UNLIKELY(clipRect.isEmpty() || !clippedBounds.intersects(clipRect))) {
61 // Note: we could rewind the clipState object in situations where the clipRect is empty,
67 clipSideFlags = computeClipSideFlags(clipRect, clippedBounds);
68 clippedBounds.doIntersect(clipRect);
101 ResolvedRenderState::ResolvedRenderState(const ClipRect* clipRect, const Rect& dstRect) argument
103 , clipState(clipRect)
105 , clipSideFlags(computeClipSideFlags(clipRect->rect, dstRect))
107 clippedBounds.doIntersect(clipRect
[all...]
H A DCanvasState.cpp206 bool CanvasState::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) { function in class:android::uirenderer::CanvasState
232 clipRect(bounds.left, bounds.top, bounds.right, bounds.bottom, SkRegion::kIntersect_Op);
254 * the clipRect. Does not modify the scissor.
274 Rect clipRect(currentRenderTargetClip());
275 clipRect.snapToPixelBoundaries();
277 if (!clipRect.intersects(r)) return true;
281 *clipRequired = !clipRect.contains(r);
302 Rect clipRect(currentRenderTargetClip());
303 clipRect.snapToPixelBoundaries();
305 if (!clipRect
[all...]
H A DBakedOpState.h72 Rect outClip(clipRect());
77 const Rect& clipRect() const { function in class:android::uirenderer::ResolvedRenderState
162 BakedOpState(const ClipRect* clipRect, const Rect& dstRect, const RecordedOp& recordedOp) argument
163 : computedState(clipRect, dstRect)
H A DRenderProperties.cpp153 Rect clipRect; local
154 getClippingRectForFlags(clipFlags, &clipRect);
156 (int)clipRect.left, (int)clipRect.top, (int)clipRect.right, (int)clipRect.bottom);
H A DSnapshot.cpp283 const Rect& clipRect(mClipArea->getClipRect());
285 clipRect.left, clipRect.top, clipRect.right, clipRect.bottom, mClipArea->isSimple());
H A DFrameBuilder.cpp117 void FrameBuilder::deferRenderNode(float tx, float ty, Rect clipRect, RenderNode& renderNode) { argument
122 mCanvasState.clipRect(clipRect.left, clipRect.top, clipRect.right, clipRect.bottom,
262 Rect clipRect; local
263 properties.getClippingRectForFlags(clipFlags, &clipRect);
264 mCanvasState.clipRect(clipRect
[all...]
H A DRenderNode.cpp632 Rect clipRect; local
633 properties().getClippingRectForFlags(clipFlags, &clipRect);
635 clipRect.left, clipRect.top, clipRect.right, clipRect.bottom,
1064 const Rect& clipRect = renderer.getLocalClipBounds(); local
1067 clipRect.left, clipRect.top, clipRect
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DStrictModeFlash.java80 c.clipRect(new Rect(0, 0, dw, mThickness), Region.Op.REPLACE);
83 c.clipRect(new Rect(0, 0, mThickness, dh), Region.Op.REPLACE);
86 c.clipRect(new Rect(dw - mThickness, 0, dw, dh), Region.Op.REPLACE);
89 c.clipRect(new Rect(0, dh - mThickness, dw, dh), Region.Op.REPLACE);
H A DWindowStateAnimator.java1204 void calculateSurfaceWindowCrop(Rect clipRect, Rect finalClipRect) { argument
1208 clipRect.setEmpty();
1249 clipRect.set((mHasClipRect && !fullscreen) ? mClipRect : mSystemDecorRect);
1250 if (DEBUG_WINDOW_CROP) Slog.d(TAG, "win=" + w + " Initial clip rect: " + clipRect
1256 clipRect.offset(w.mShownPosition.x, w.mShownPosition.y);
1261 clipRect.left -= attrs.surfaceInsets.left;
1262 clipRect.top -= attrs.surfaceInsets.top;
1263 clipRect.right += attrs.surfaceInsets.right;
1264 clipRect.bottom += attrs.surfaceInsets.bottom;
1270 clipRect
1289 updateSurfaceWindowCrop(Rect clipRect, Rect finalClipRect, boolean recoveringMemory) argument
1317 adjustCropToStackBounds(WindowState w, Rect clipRect, Rect finalClipRect, boolean isFreeformResizing) argument
[all...]
H A DWindowSurfaceController.java185 void setCropInTransaction(Rect clipRect, boolean recoveringMemory) { argument
187 "CROP " + clipRect.toShortString(), null);
189 if (clipRect.width() > 0 && clipRect.height() > 0) {
190 mSurfaceControl.setWindowCrop(clipRect);
200 + " crop=" + clipRect.toShortString(), e);
211 Rect clipRect = new Rect(0, 0, -1, -1);
212 mSurfaceControl.setWindowCrop(clipRect);
221 void setFinalCropInTransaction(Rect clipRect) { argument
223 "FINAL CROP " + clipRect
[all...]
/frameworks/base/libs/hwui/tests/common/scenes/
H A DClippingAnimation.cpp37 canvas.clipRect(0, 0, 200, 200, SkRegion::kIntersect_Op);
41 canvas.clipRect(0, 0, 200, 200, SkRegion::kIntersect_Op);
H A DSaveLayerAnimation.cpp39 canvas.clipRect(50, 50, 350, 350, SkRegion::kIntersect_Op);
/frameworks/base/graphics/java/android/graphics/drawable/
H A DPictureDrawable.java67 canvas.clipRect(bounds);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardPreviewContainer.java38 canvas.clipRect(0, getHeight() - getPaddingBottom(), getWidth(), getHeight());
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DAlphaLayersActivity.java87 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f);
88 Log.d(LOG_TAG, "clipRect = " + canvas.getClipBounds());
97 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f);
98 Log.d(LOG_TAG, "clipRect = " + canvas.getClipBounds());
107 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f);
108 Log.d(LOG_TAG, "clipRect = " + canvas.getClipBounds());
117 canvas.clipRect(20.0f, 0.0f, 40.0f, 20.0f);
H A DBitmapMeshActivity.java77 canvas.clipRect(0.0f, 0.0f, 80.0f, 80.0f);
H A DQuickRejectActivity.java82 canvas.clipRect(0.0f, 0.0f, 40.0f, 40.0f);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DHorizontalGridView.java330 canvas.clipRect(lowEdge + (mFadingLowEdge ? mLowFadeShaderLength : 0), 0,
344 tmpCanvas.clipRect(0, 0, mLowFadeShaderLength, getHeight());
364 tmpCanvas.clipRect(0, 0, mHighFadeShaderLength, getHeight());
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/view/
H A DStickyHeaderRecyclerView.java106 canvas.clipRect(0, 0, drawTarget.getWidth(), drawTarget.getHeight());
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DViewGroup_Delegate.java83 canvas.clipRect(newBounds, Op.REPLACE);
85 canvas.clipRect(clipBounds, Op.REPLACE);
/frameworks/support/v4/java/android/support/v4/widget/
H A DSwipeProgressBar.java145 canvas.clipRect(mBounds);
228 canvas.clipRect(mBounds);
/frameworks/base/core/java/com/android/internal/transition/
H A DEpicenterTranslateClipReveal.java203 final Rect clipRect = (Rect) values.values.get(PROPNAME_CLIP);
204 if (clipRect == null) {
207 return clipRect;

Completed in 468 milliseconds

1234