Searched defs:clipRect (Results 1 - 16 of 16) sorted by relevance

/frameworks/base/libs/hwui/
H A DBakedOpState.cpp59 const Rect& clipRect = clipState->rect; local
60 if (CC_UNLIKELY(clipRect.isEmpty() || !clippedBounds.intersects(clipRect))) {
63 // Note: we could rewind the clipState object in situations where the clipRect is empty,
69 clipSideFlags = computeClipSideFlags(clipRect, clippedBounds);
70 clippedBounds.doIntersect(clipRect);
103 ResolvedRenderState::ResolvedRenderState(const ClipRect* clipRect, const Rect& dstRect) argument
105 , clipState(clipRect)
107 , clipSideFlags(computeClipSideFlags(clipRect->rect, dstRect))
109 clippedBounds.doIntersect(clipRect
[all...]
H A DRenderProperties.cpp161 Rect clipRect; local
162 getClippingRectForFlags(clipFlags, &clipRect);
164 << (int)clipRect.left << ", " << (int)clipRect.top << ", "
165 << (int)clipRect.right << ", " << (int)clipRect.bottom << ")" << std::endl;
H A DBakedOpState.h72 Rect outClip(clipRect());
77 const Rect& clipRect() const { function in class:android::uirenderer::ResolvedRenderState
163 BakedOpState(const ClipRect* clipRect, const Rect& dstRect, const RecordedOp& recordedOp) argument
164 : computedState(clipRect, dstRect)
H A DCanvasState.cpp205 bool CanvasState::clipRect(float left, float top, float right, float bottom, SkClipOp op) { function in class:android::uirenderer::CanvasState
223 clipRect(bounds.left, bounds.top, bounds.right, bounds.bottom, SkClipOp::kIntersect);
236 * the clipRect. Does not modify the scissor.
256 Rect clipRect(currentRenderTargetClip());
257 clipRect.snapToPixelBoundaries();
259 if (!clipRect.intersects(r)) return true;
263 *clipRequired = !clipRect.contains(r);
284 Rect clipRect(currentRenderTargetClip());
285 clipRect.snapToPixelBoundaries();
287 if (!clipRect
[all...]
H A DFrameBuilder.cpp118 void FrameBuilder::deferRenderNode(float tx, float ty, Rect clipRect, RenderNode& renderNode) { argument
123 mCanvasState.clipRect(clipRect.left, clipRect.top, clipRect.right, clipRect.bottom,
265 Rect clipRect; local
266 properties.getClippingRectForFlags(clipFlags, &clipRect);
267 mCanvasState.clipRect(clipRect
[all...]
H A DRecordingCanvas.cpp237 bool RecordingCanvas::clipRect(float left, float top, float right, float bottom, SkClipOp op) { function in class:android::uirenderer::RecordingCanvas
238 return mState.clipRect(left, top, right, bottom, op);
H A DSkiaCanvas.cpp217 canvas->clipRect(mRRect.rect(), mOp);
385 bool SkiaCanvas::clipRect(float left, float top, float right, float bottom, SkClipOp op) { function in class:android::SkiaCanvas
388 mCanvas->clipRect(rect, op);
/frameworks/base/libs/hwui/pipeline/skia/
H A DRenderNodeDrawable.cpp70 canvas->clipRect(*pendingClip);
78 canvas->clipRect(*pendingClip);
85 canvas->clipRect(rect);
265 SkRect clipRect; local
270 clipRect = tmpRect.toSkRect();
271 pendingClip = &clipRect;
282 canvas->clipRect(*pendingClip);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java529 public boolean clipRect(float left, float top, float right, float bottom, int regionOp) { method in class:GcSnapshot
/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowSurfaceController.java200 void setCropInTransaction(Rect clipRect, boolean recoveringMemory) { argument
202 "CROP " + clipRect.toShortString(), null);
204 if (clipRect.width() > 0 && clipRect.height() > 0) {
205 mSurfaceControl.setWindowCrop(clipRect);
215 + " crop=" + clipRect.toShortString(), e);
226 Rect clipRect = new Rect(0, 0, -1, -1);
227 mSurfaceControl.setWindowCrop(clipRect);
236 void setFinalCropInTransaction(Rect clipRect) { argument
238 "FINAL CROP " + clipRect
[all...]
H A DWindowStateAnimator.java1168 * Calculate the window-space crop rect and fill clipRect.
1169 * @return true if clipRect has been filled otherwise, no window space crop should be applied.
1171 private boolean calculateCrop(Rect clipRect) { argument
1174 clipRect.setEmpty();
1204 clipRect.set((mHasClipRect && !fullscreen) ? mClipRect : mSystemDecorRect);
1205 if (DEBUG_WINDOW_CROP) Slog.d(TAG, "win=" + w + " Initial clip rect: " + clipRect
1211 clipRect.offset(w.mShownPosition.x, w.mShownPosition.y);
1214 w.expandForSurfaceInsets(clipRect);
1220 clipRect.intersect(mClipRect);
1224 clipRect
1237 applyCrop(Rect clipRect, Rect finalClipRect, boolean recoveringMemory) argument
1297 adjustCropToStackBounds(Rect clipRect, boolean isFreeformResizing) argument
[all...]
H A DWindowState.java3491 void transformClipRectFromScreenToSurfaceSpace(Rect clipRect) { argument
3493 clipRect.left = (int) (clipRect.left / mHScale);
3494 clipRect.right = (int) Math.ceil(clipRect.right / mHScale);
3497 clipRect.top = (int) (clipRect.top / mVScale);
3498 clipRect.bottom = (int) Math.ceil(clipRect.bottom / mVScale);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBaseCanvas_Delegate.java759 protected boolean clipRect(float left, float top, float right, float bottom, int regionOp) { method in class:BaseCanvas_Delegate
760 return mSnapshot.clipRect(left, top, right, bottom, regionOp);
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp199 static jboolean clipRect(jlong canvasHandle, jfloat l, jfloat t, function in namespace:android::CanvasJNI
201 bool nonEmptyClip = get_canvas(canvasHandle)->clipRect(l, t, r, b,
603 {"nClipRect","(JFFFFI)Z", (void*) CanvasJNI::clipRect},
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java378 * Subsequent calls to translate,scale,rotate,skew,concat or clipRect,
396 * Subsequent calls to translate,scale,rotate,skew,concat or clipRect,
757 * recommended alternative calls are {@link #clipRect(RectF)} and {@link #clipOutRect(RectF)};
760 public boolean clipRect(@NonNull RectF rect, @NonNull Region.Op op) { method in class:Canvas
777 * recommended alternative calls are {@link #clipRect(Rect)} and {@link #clipOutRect(Rect)};
780 public boolean clipRect(@NonNull Rect rect, @NonNull Region.Op op) { method in class:Canvas
792 public boolean clipRect(@NonNull RectF rect) { method in class:Canvas
816 public boolean clipRect(@NonNull Rect rect) { method in class:Canvas
852 * recommended alternative calls are {@link #clipRect(float,float,float,float)} and
856 public boolean clipRect(floa method in class:Canvas
874 public boolean clipRect(float left, float top, float right, float bottom) { method in class:Canvas
907 public boolean clipRect(int left, int top, int right, int bottom) { method in class:Canvas
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationStackScrollLayout.java770 private void setRequestedClipBounds(Rect clipRect) { argument
771 mRequestedClipBounds = clipRect;
2584 // Make sure the clipRect we might have set is removed

Completed in 2662 milliseconds