Home
last modified time | relevance | path

Searched refs:SkRegion (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/core/jni/android/graphics/
DRegion.cpp36 static inline SkRegion* GetSkRegion(JNIEnv* env, jobject regionObject) { in GetSkRegion()
38 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in GetSkRegion()
44 return reinterpret_cast<jlong>(new SkRegion); in Region_constructor()
48 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_destructor()
54 SkRegion* dst = reinterpret_cast<SkRegion*>(dstHandle); in Region_setRegion()
55 const SkRegion* src = reinterpret_cast<SkRegion*>(srcHandle); in Region_setRegion()
61 SkRegion* dst = reinterpret_cast<SkRegion*>(dstHandle); in Region_setRect()
68 SkRegion* dst = reinterpret_cast<SkRegion*>(dstHandle); in Region_setPath()
70 const SkRegion* clip = reinterpret_cast<SkRegion*>(clipHandle); in Region_setPath()
78 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_getBounds()
[all …]
DRegion.h26 extern SkRegion* android_graphics_Region_getSkRegion(JNIEnv* env, jobject regionObj);
DNinePatchImpl.cpp102 const SkPaint* paint, SkRegion** outRegion) { in NinePatch_Draw()
294 *outRegion = new SkRegion(); in NinePatch_Draw()
300 (*outRegion)->op(idst, SkRegion::kUnion_Op); in NinePatch_Draw()
DNinePatch.cpp36 const android::Res_png_9patch& chunk, const SkPaint* paint, SkRegion** outRegion);
168 SkRegion* region = NULL; in getTransparentRegion()
DGraphicsJNI.h56 static SkRegion* getNativeRegion(JNIEnv*, jobject region);
91 static jobject createRegion(JNIEnv* env, SkRegion* region);
/frameworks/base/libs/hwui/
DClipArea.h70 SkRegion convertToRegion(const SkRegion& clip) const;
95 const mat4* transform, SkRegion::Op op = SkRegion::kIntersect_Op);
97 SkRegion::Op op = SkRegion::kIntersect_Op);
98 bool clipRegion(const SkRegion& region, SkRegion::Op op = SkRegion::kIntersect_Op);
100 SkRegion::Op op);
106 const SkRegion& getClipRegion() const { in getClipRegion()
128 bool rectangleModeClipRectWithTransform(const Rect& r, const mat4* transform, SkRegion::Op op);
130 float bottom, const mat4* transform, SkRegion::Op op);
134 float right, float bottom, const mat4* transform, SkRegion::Op op);
136 const mat4* transform, SkRegion::Op op);
[all …]
DClipArea.cpp168 SkRegion RectangleList::convertToRegion(const SkRegion& clip) const { in convertToRegion()
169 SkRegion rectangleListAsRegion; in convertToRegion()
177 SkRegion rectRegion; in convertToRegion()
179 rectangleListAsRegion.op(rectRegion, SkRegion::kIntersect_Op); in convertToRegion()
216 float bottom, const mat4* transform, SkRegion::Op op) { in clipRectWithTransform()
222 SkRegion::Op op) { in clipRectWithTransform()
234 bool ClipArea::clipRegion(const SkRegion& region, SkRegion::Op op) { in clipRegion()
242 SkRegion::Op op) { in clipPathWithTransform()
247 SkRegion region; in clipPathWithTransform()
264 const mat4* transform, SkRegion::Op op) { in rectangleModeClipRectWithTransform()
[all …]
DSnapshot.h128 SkRegion::Op op = SkRegion::kIntersect_Op);
135 bool clipTransformed(const Rect& r, SkRegion::Op op = SkRegion::kIntersect_Op);
141 bool clipRegionTransformed(const SkRegion& region, SkRegion::Op op);
146 bool clipPath(const SkPath& path, SkRegion::Op op);
169 const SkRegion& getClipRegion() const { return mClipArea->getClipRegion(); } in getClipRegion()
DDisplayListCanvas.h181 … virtual bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op) override;
182 virtual bool clipPath(const SkPath* path, SkRegion::Op op) override;
183 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) override;
332 inline const SkRegion* refRegion(const SkRegion* region) { in refRegion()
337 const SkRegion* cachedRegion = mRegionMap.valueFor(region); in refRegion()
340 std::unique_ptr<const SkRegion> copy(new SkRegion(*region)); in refRegion()
370 DefaultKeyedVector<const SkRegion*, const SkRegion*> mRegionMap;
DSkiaCanvasProxy.h93 virtual void onClipRect(const SkRect&, SkRegion::Op, ClipEdgeStyle) override;
94 virtual void onClipRRect(const SkRRect&, SkRegion::Op, ClipEdgeStyle) override;
95 virtual void onClipPath(const SkPath&, SkRegion::Op, ClipEdgeStyle) override;
96 virtual void onClipRegion(const SkRegion&, SkRegion::Op) override;
DCanvas.h99 SkRegion::Op op = SkRegion::kIntersect_Op) = 0;
100 virtual bool clipPath(const SkPath* path, SkRegion::Op op) = 0;
101 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) = 0;
DCanvasState.h120 bool clipRect(float left, float top, float right, float bottom, SkRegion::Op op);
121 bool clipPath(const SkPath* path, SkRegion::Op op);
122 bool clipRegion(const SkRegion* region, SkRegion::Op op);
DCanvasState.cpp157 bool CanvasState::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) { in clipRect()
162 bool CanvasState::clipPath(const SkPath* path, SkRegion::Op op) { in clipPath()
167 bool CanvasState::clipRegion(const SkRegion* region, SkRegion::Op op) { in clipRegion()
180 clipRect(bounds.left, bounds.top, bounds.right, bounds.bottom, SkRegion::kIntersect_Op); in setClippingOutline()
DSkiaCanvas.cpp81 SkRegion::Op op) override;
82 virtual bool clipPath(const SkPath* path, SkRegion::Op op) override;
83 virtual bool clipRegion(const SkRegion* region, SkRegion::Op op) override;
169 virtual void clipRect(const SkRect& rect, SkRegion::Op op, bool antialias) { in clipRect()
172 virtual void clipRRect(const SkRRect& rrect, SkRegion::Op op, bool antialias) { in clipRRect()
175 virtual void clipPath(const SkPath& path, SkRegion::Op op, bool antialias) { in clipPath()
420 bool SkiaCanvas::clipRect(float left, float top, float right, float bottom, SkRegion::Op op) { in clipRect()
426 bool SkiaCanvas::clipPath(const SkPath* path, SkRegion::Op op) { in clipPath()
431 bool SkiaCanvas::clipRegion(const SkRegion* region, SkRegion::Op op) { in clipRegion()
DSnapshot.cpp88 bool Snapshot::clipRegionTransformed(const SkRegion& region, SkRegion::Op op) { in clipRegionTransformed()
93 bool Snapshot::clip(float left, float top, float right, float bottom, SkRegion::Op op) { in clip()
98 bool Snapshot::clipPath(const SkPath& path, SkRegion::Op op) { in clipPath()
DDisplayList.h49 class SkRegion; variable
141 std::vector<std::unique_ptr<const SkRegion>> regions;
DSkiaCanvasProxy.cpp344 void SkiaCanvasProxy::onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle) { in onClipRect()
348 void SkiaCanvasProxy::onClipRRect(const SkRRect& roundRect, SkRegion::Op op, ClipEdgeStyle) { in onClipRRect()
354 void SkiaCanvasProxy::onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle) { in onClipPath()
358 void SkiaCanvasProxy::onClipRegion(const SkRegion& region, SkRegion::Op op) { in onClipRegion()
DOpenGLRenderer.h390 float right, float bottom, SkRegion::Op op);
391 bool clipPath(const SkPath* path, SkRegion::Op op);
392 bool clipRegion(const SkRegion* region, SkRegion::Op op);
813 void drawRegionRects(const SkRegion& region, const SkPaint& paint, bool dirty = false);
DDisplayListOp.h532 ClipOp(SkRegion::Op op) : mOp(op) {} in ClipOp()
544 return ((mOp != SkRegion::kIntersect_Op) && (mOp != SkRegion::kReplace_Op)) || !isRect(); in canCauseComplexClip()
550 SkRegion::Op mOp;
555 ClipRectOp(float left, float top, float right, float bottom, SkRegion::Op op) in ClipRectOp()
577 ClipPathOp(const SkPath* path, SkRegion::Op op) in ClipPathOp()
598 ClipRegionOp(const SkRegion* region, SkRegion::Op op) in ClipRegionOp()
614 const SkRegion* mRegion;
DDisplayListCanvas.cpp206 SkRegion::Op op) { in clipRect()
211 bool DisplayListCanvas::clipPath(const SkPath* path, SkRegion::Op op) { in clipPath()
217 bool DisplayListCanvas::clipRegion(const SkRegion* region, SkRegion::Op op) { in clipRegion()
/frameworks/base/libs/hwui/unit_tests/
DClipAreaTests.cpp82 SkRegion clip; in TEST()
84 SkRegion rgn(list.convertToRegion(clip)); in TEST()
100 area.clipPathWithTransform(path, &transform, SkRegion::kIntersect_Op); in TEST()
109 SkRegion clipRegion(area.getClipRegion()); in TEST()
123 area.clipRectWithTransform(expected, &transform, SkRegion::kReplace_Op); in TEST()
/frameworks/native/libs/ui/
DRegion.cpp616 SkRegion sk_lhs; in boolean_operation()
617 SkRegion sk_rhs; in boolean_operation()
618 SkRegion sk_dst; in boolean_operation()
626 SkRegion::kUnion_Op); in boolean_operation()
634 SkRegion::kUnion_Op); in boolean_operation()
637 SkRegion::Op sk_op; in boolean_operation()
639 case op_or: sk_op = SkRegion::kUnion_Op; name="OR"; break; in boolean_operation()
640 case op_xor: sk_op = SkRegion::kUnion_XOR; name="XOR"; break; in boolean_operation()
641 case op_and: sk_op = SkRegion::kIntersect_Op; name="AND"; break; in boolean_operation()
642 case op_nand: sk_op = SkRegion::kDifference_Op; name="NAND"; break; in boolean_operation()
[all …]
/frameworks/base/core/jni/
Dandroid_view_DisplayListCanvas.cpp154 SkRegion* region = reinterpret_cast<SkRegion*>(regionPtr); in android_view_DisplayListCanvas_drawRegionAsRects()
158 SkRegion::Iterator it(*region); in android_view_DisplayListCanvas_drawRegionAsRects()
167 SkRegion::Iterator it(*region); in android_view_DisplayListCanvas_drawRegionAsRects()
Dandroid_graphics_Canvas.cpp177 SkRegion::Op op = static_cast<SkRegion::Op>(opHandle); in clipRect()
185 SkRegion::Op op = static_cast<SkRegion::Op>(opHandle); in clipPath()
192 SkRegion* deviceRgn = reinterpret_cast<SkRegion*>(deviceRgnHandle); in clipRegion()
193 SkRegion::Op op = static_cast<SkRegion::Op>(opHandle); in clipRegion()
/frameworks/base/services/core/jni/
Dcom_android_server_input_InputWindowHandle.cpp133 SkRegion* region = android_graphics_Region_getSkRegion(env, regionObj); in updateInfo()
134 for (SkRegion::Iterator it(*region); !it.done(); it.next()) { in updateInfo()

12