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

/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 DRenderProperties.cpp153 Rect clipRect; local
154 getClippingRectForFlags(clipFlags, &clipRect);
156 (int)clipRect.left, (int)clipRect.top, (int)clipRect.right, (int)clipRect.bottom);
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 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 DLayer.h314 Rect clipRect; member in class:android::uirenderer::Layer
H A DDisplayListCanvas.cpp195 bool DisplayListCanvas::clipRect(float left, float top, float right, float bottom, function in class:android::uirenderer::DisplayListCanvas
198 return mState.clipRect(left, top, right, bottom, op);
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 DRecordingCanvas.cpp233 bool RecordingCanvas::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) { function in class:android::uirenderer::RecordingCanvas
234 return mState.clipRect(left, top, right, bottom, op);
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...]
H A DSkiaCanvas.cpp106 virtual bool clipRect(float left, float top, float right, float bottom,
213 virtual void clipRect(const SkRect& rect, SkRegion::Op op, bool antialias) { function in class:android::ClipCopier
214 m_dstCanvas->clipRect(rect, op, antialias);
492 bool SkiaCanvas::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) { function in class:android::SkiaCanvas
494 mCanvas->clipRect(rect, op);
512 mCanvas->clipRect(SkRect::MakeEmpty(), op);
H A DOpenGLRenderer.cpp676 layer->clipRect.set(clip);
896 clipRect(rect.left, rect.top, rect.right, rect.bottom, SkRegion::kIntersect_Op);
1179 void OpenGLRenderer::setupMergedMultiDraw(const Rect* clipRect) { argument
1180 if (clipRect != nullptr) {
1181 writableSnapshot()->setClip(clipRect->left, clipRect->top, clipRect->right, clipRect->bottom);
1186 bool enableScissor = (clipRect != nullptr) || mScissorOptimizationDisabled;
2070 bool OpenGLRenderer::clipRect(floa function in class:android::uirenderer::OpenGLRenderer
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java527 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 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...]
H A DWindowState.java2735 void transformClipRectFromScreenToSurfaceSpace(Rect clipRect) { argument
2737 clipRect.left = (int) (clipRect.left / mHScale);
2738 clipRect.right = (int) Math.ceil(clipRect.right / mHScale);
2741 clipRect.top = (int) (clipRect.top / mVScale);
2742 clipRect.bottom = (int) Math.ceil(clipRect.bottom / mVScale);
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp186 static jboolean clipRect(JNIEnv*, jobject, jlong canvasHandle, jfloat l, jfloat t, function in namespace:android::CanvasJNI
189 bool nonEmptyClip = get_canvas(canvasHandle)->clipRect(l, t, r, b, op);
599 {"native_clipRect","!(JFFFFI)Z", (void*) CanvasJNI::clipRect},
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas_Delegate.java396 return canvasDelegate.clipRect(left, top, right, bottom, regionOp);
1142 private boolean clipRect(float left, float top, float right, float bottom, int regionOp) { method in class:Canvas_Delegate
1143 return mSnapshot.clipRect(left, top, right, bottom, regionOp);
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java364 * Subsequent calls to translate,scale,rotate,skew,concat or clipRect,
382 * Subsequent calls to translate,scale,rotate,skew,concat or clipRect,
685 public boolean clipRect(@NonNull RectF rect, @NonNull Region.Op op) { method in class:Canvas
698 public boolean clipRect(@NonNull Rect rect, @NonNull Region.Op op) { method in class:Canvas
710 public boolean clipRect(@NonNull RectF rect) { method in class:Canvas
722 public boolean clipRect(@NonNull Rect rect) { method in class:Canvas
742 public boolean clipRect(float left, float top, float right, float bottom, method in class:Canvas
760 public boolean clipRect(float left, float top, float right, float bottom) { method in class:Canvas
778 public boolean clipRect(int left, int top, int right, int bottom) { method in class:Canvas
806 * clipRect() an
[all...]

Completed in 211 milliseconds