Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/jni/
DRegion.cpp35 static inline SkRegion* GetSkRegion(JNIEnv* env, jobject regionObject) { in GetSkRegion()
37 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in GetSkRegion()
43 return reinterpret_cast<jlong>(new SkRegion); in Region_constructor()
47 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_destructor()
53 SkRegion* dst = reinterpret_cast<SkRegion*>(dstHandle); in Region_setRegion()
54 const SkRegion* src = reinterpret_cast<SkRegion*>(srcHandle); in Region_setRegion()
60 SkRegion* dst = reinterpret_cast<SkRegion*>(dstHandle); in Region_setRect()
67 SkRegion* dst = reinterpret_cast<SkRegion*>(dstHandle); in Region_setPath()
69 const SkRegion* clip = reinterpret_cast<SkRegion*>(clipHandle); in Region_setPath()
77 SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in Region_getBounds()
[all …]
Dandroid_graphics_Canvas.cpp193 static_assert(SkRegion::kDifference_Op == static_cast<SkRegion::Op>(SkClipOp::kDifference), "");
194 static_assert(SkRegion::kIntersect_Op == static_cast<SkRegion::Op>(SkClipOp::kIntersect), "");
195 static_assert(SkRegion::kUnion_Op == static_cast<SkRegion::Op>(SkClipOp::kUnion_deprecated), "");
196 static_assert(SkRegion::kXOR_Op == static_cast<SkRegion::Op>(SkClipOp::kXOR_deprecated), "");
197 static_assert(SkRegion::kReverseDifference_Op == static_cast<SkRegion::Op>(SkClipOp::kReverseDiffer…
198 static_assert(SkRegion::kReplace_Op == static_cast<SkRegion::Op>(SkClipOp::kReplace_deprecated), ""…
202 SkRegion::Op rgnOp = static_cast<SkRegion::Op>(opHandle); in opHandleToClipOp()
327 const SkRegion* region = reinterpret_cast<SkRegion*>(regionHandle); in drawRegion()
DNinePatch.cpp102 SkRegion* region = nullptr; in getTransparentRegion()
112 region = new SkRegion(); in getTransparentRegion()
115 region->op(iterDst.round(), SkRegion::kUnion_Op); in getTransparentRegion()
DGraphicsJNI.h88 static SkRegion* getNativeRegion(JNIEnv*, jobject region);
119 static jobject createRegion(JNIEnv* env, SkRegion* region);
DGraphics.cpp475 SkRegion* GraphicsJNI::getNativeRegion(JNIEnv* env, jobject region) in getNativeRegion()
481 SkRegion* r = reinterpret_cast<SkRegion*>(regionHandle); in getNativeRegion()
525 jobject GraphicsJNI::createRegion(JNIEnv* env, SkRegion* region) in createRegion()
/frameworks/base/libs/hwui/canvas/
DCanvasFrontend.cpp58 static_assert(static_cast<int>(SkClipOp::kDifference) == SkRegion::Op::kDifference_Op);
59 static_assert(static_cast<int>(SkClipOp::kIntersect) == SkRegion::Op::kIntersect_Op);
60 static_assert(static_cast<int>(SkClipOp::kUnion_deprecated) == SkRegion::Op::kUnion_Op);
61 static_assert(static_cast<int>(SkClipOp::kXOR_deprecated) == SkRegion::Op::kXOR_Op);
62 static_assert(static_cast<int>(SkClipOp::kReverseDifference_deprecated) == SkRegion::Op::kReverseDi…
63 static_assert(static_cast<int>(SkClipOp::kReplace_deprecated) == SkRegion::Op::kReplace_Op);
66 clip().opRect(rect, transform(), mInitialBounds, (SkRegion::Op)op, false); in internalClipRect()
70 clip().opPath(path, transform(), mInitialBounds, (SkRegion::Op)op, true); in internalClipPath()
DCanvasOps.h208 SkRegion region;
/frameworks/base/libs/hwui/apex/
Dandroid_region.cpp23 static inline SkRegion::Iterator* ARegionIter_to_SkRegionIter(ARegionIterator* iterator) { in ARegionIter_to_SkRegionIter()
24 return reinterpret_cast<SkRegion::Iterator*>(iterator); in ARegionIter_to_SkRegionIter()
27 static inline ARegionIterator* SkRegionIter_to_ARegionIter(SkRegion::Iterator* iterator) { in SkRegionIter_to_ARegionIter()
32 SkRegion* region = GraphicsJNI::getNativeRegion(env, regionObj); in ARegionIterator_acquireIterator()
33 return (!region) ? nullptr : SkRegionIter_to_ARegionIter(new SkRegion::Iterator(*region)); in ARegionIterator_acquireIterator()
/frameworks/base/libs/hwui/tests/common/scenes/
DRectGridAnimation.cpp37 SkRegion region; in createContent()
40 region.op({xOffset, yOffset, xOffset + 1, yOffset + 1}, SkRegion::kUnion_Op); in createContent()
/frameworks/native/libs/ui/
DRegion.cpp677 SkRegion sk_lhs; in boolean_operation()
678 SkRegion sk_rhs; in boolean_operation()
679 SkRegion sk_dst; in boolean_operation()
687 SkRegion::kUnion_Op); in boolean_operation()
695 SkRegion::kUnion_Op); in boolean_operation()
698 SkRegion::Op sk_op; in boolean_operation()
700 case op_or: sk_op = SkRegion::kUnion_Op; name="OR"; break; in boolean_operation()
701 case op_xor: sk_op = SkRegion::kUnion_XOR; name="XOR"; break; in boolean_operation()
702 case op_and: sk_op = SkRegion::kIntersect_Op; name="AND"; break; in boolean_operation()
703 case op_nand: sk_op = SkRegion::kDifference_Op; name="NAND"; break; in boolean_operation()
[all …]
/frameworks/base/libs/hwui/
DRecordingCanvas.h99 void clipRegion(const SkRegion&, SkClipOp);
105 void drawRegion(const SkRegion&, const SkPaint&);
171 void onClipRegion(const SkRegion&, SkClipOp) override;
177 void onDrawRegion(const SkRegion&, const SkPaint&) override;
DRecordingCanvas.cpp184 ClipRegion(const SkRegion& region, SkClipOp op) : region(region), op(op) {} in ClipRegion()
185 SkRegion region;
218 DrawRegion(const SkRegion& region, const SkPaint& paint) : region(region), paint(paint) {} in DrawRegion()
219 SkRegion region;
529 SkRegion clipRegion; in needsCompositedLayer()
661 void DisplayListData::clipRegion(const SkRegion& region, SkClipOp op) { in clipRegion()
677 void DisplayListData::drawRegion(const SkRegion& region, const SkPaint& paint) { in drawRegion()
962 void RecordingCanvas::onClipRegion(const SkRegion& region, SkClipOp op) { in onClipRegion()
982 void RecordingCanvas::onDrawRegion(const SkRegion& region, const SkPaint& paint) { in onDrawRegion()
DRenderNode.h48 class SkRegion; variable
DSkiaCanvas.h111 virtual void drawRegion(const SkRegion& region, const Paint& paint) override;
DSkiaCanvas.cpp496 void SkiaCanvas::drawRegion(const SkRegion& region, const Paint& paint) { in drawRegion()
/frameworks/base/libs/hwui/tests/unit/
DFatalTestCanvas.h44 void onDrawRegion(const SkRegion& region, const SkPaint& paint) { in onDrawRegion()
88 void onClipRegion(const SkRegion& deviceRgn, SkClipOp) { in onClipRegion()
DCanvasOpTests.cpp234 SkRegion region; in TEST()
254 SkRegion clip; in TEST()
256 SkRegion region; in TEST()
/frameworks/base/libs/hwui/pipeline/skia/
DDumpOpsCanvas.h51 void onClipRegion(const SkRegion& deviceRgn, SkClipOp) override { in onClipRegion()
65 void onDrawRegion(const SkRegion&, const SkPaint&) override { in onDrawRegion() argument
DGLFunctorDrawable.cpp74 SkRegion clipRegion; in onDraw()
/frameworks/base/libs/hwui/tests/common/
DCallCountingCanvas.h87 void onDrawRegion(const SkRegion& region, const SkPaint& paint) override { in onDrawRegion()
/frameworks/base/libs/hwui/hwui/
DCanvas.h210 virtual void drawRegion(const SkRegion& region, const Paint& paint) = 0;
/frameworks/native/libs/renderengine/skia/
DSkiaGLRenderEngine.cpp827 SkRegion clearRegion; in drawLayers()