Home
last modified time | relevance | path

Searched refs:SkClipOp (Results 1 – 20 of 20) sorted by relevance

/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);
65 void CanvasStateHelper::internalClipRect(const SkRect& rect, SkClipOp op) { in internalClipRect()
69 void CanvasStateHelper::internalClipPath(const SkPath& path, SkClipOp op) { in internalClipPath()
DCanvasFrontend.h67 internalClipRect(*layerRec.fBounds, SkClipOp::kIntersect); in internalSaveLayer()
72 void internalClipRect(const SkRect& rect, SkClipOp op);
73 void internalClipPath(const SkPath& path, SkClipOp op);
DCanvasOps.h101 SkClipOp clipOp;
109 SkClipOp op;
/frameworks/base/libs/hwui/
DRecordingCanvas.h96 void clipPath(const SkPath&, SkClipOp, bool aa);
97 void clipRect(const SkRect&, SkClipOp, bool aa);
98 void clipRRect(const SkRRect&, SkClipOp, bool aa);
99 void clipRegion(const SkRegion&, SkClipOp);
168 void onClipRect(const SkRect&, SkClipOp, ClipEdgeStyle) override;
169 void onClipRRect(const SkRRect&, SkClipOp, ClipEdgeStyle) override;
170 void onClipPath(const SkPath&, SkClipOp, ClipEdgeStyle) override;
171 void onClipRegion(const SkRegion&, SkClipOp) override;
DRecordingCanvas.cpp160 ClipPath(const SkPath& path, SkClipOp op, bool aa) : path(path), op(op), aa(aa) {} in ClipPath()
162 SkClipOp op;
168 ClipRect(const SkRect& rect, SkClipOp op, bool aa) : rect(rect), op(op), aa(aa) {} in ClipRect()
170 SkClipOp op;
176 ClipRRect(const SkRRect& rrect, SkClipOp op, bool aa) : rrect(rrect), op(op), aa(aa) {} in ClipRRect()
178 SkClipOp op;
184 ClipRegion(const SkRegion& region, SkClipOp op) : region(region), op(op) {} in ClipRegion()
186 SkClipOp op;
652 void DisplayListData::clipPath(const SkPath& path, SkClipOp op, bool aa) { in clipPath()
655 void DisplayListData::clipRect(const SkRect& rect, SkClipOp op, bool aa) { in clipRect()
[all …]
DSkiaCanvas.h93 virtual bool clipRect(float left, float top, float right, float bottom, SkClipOp op) override;
94 virtual bool clipPath(const SkPath* path, SkClipOp op) override;
211 void recordClip(const T&, SkClipOp);
DSkiaCanvas.cpp199 Clip(const SkRect& rect, SkClipOp op, const SkMatrix& m) in Clip()
201 Clip(const SkRRect& rrect, SkClipOp op, const SkMatrix& m) in Clip()
203 Clip(const SkPath& path, SkClipOp op, const SkMatrix& m) in Clip()
232 SkClipOp mOp;
282 void SkiaCanvas::recordClip(const T& clip, SkClipOp op) { in recordClip()
386 bool SkiaCanvas::clipRect(float left, float top, float right, float bottom, SkClipOp op) { in clipRect()
393 bool SkiaCanvas::clipPath(const SkPath* path, SkClipOp op) { in clipPath()
/frameworks/base/libs/hwui/tests/common/scenes/
DClippingAnimation.cpp35 canvas.clipRect(0, 0, 200, 200, SkClipOp::kIntersect); in createContent()
39 canvas.clipRect(0, 0, 200, 200, SkClipOp::kIntersect); in createContent()
48 canvas.clipPath(&clipCircle, SkClipOp::kIntersect); in createContent()
DSaveLayerAnimation.cpp38 canvas.clipRect(50, 50, 350, 350, SkClipOp::kIntersect); in createContent()
DShapeAnimation.cpp81 canvas.clipRect(0, 0, cellSize, cellSize, SkClipOp::kIntersect); in createContent()
/frameworks/base/libs/hwui/tests/unit/
DFatalTestCanvas.h82 void onClipRRect(const SkRRect& rrect, SkClipOp, ClipEdgeStyle) { in onClipRRect() argument
85 void onClipPath(const SkPath& path, SkClipOp, ClipEdgeStyle) { in onClipPath() argument
88 void onClipRegion(const SkRegion& deviceRgn, SkClipOp) { in onClipRegion() argument
DSkiaRenderPropertiesTests.cpp54 void onClipRRect(const SkRRect& rrect, SkClipOp op, ClipEdgeStyle style) { in testProperty()
DRenderNodeDrawableTests.cpp205 recorder.clipRect(50, 50, 350, 350, SkClipOp::kIntersect); in TEST()
602 canvas.clipRect(100, 100, 300, 300, SkClipOp::kIntersect); in RENDERTHREAD_TEST()
DSkiaPipelineTests.cpp385 canvas.clipRect(0, -20, 10, 30, SkClipOp::kReplace_deprecated); in RENDERTHREAD_SKIA_PIPELINE_TEST()
/frameworks/base/libs/hwui/pipeline/skia/
DDumpOpsCanvas.h39 void onClipRect(const SkRect& rect, SkClipOp, ClipEdgeStyle) override { in onClipRect() argument
43 void onClipRRect(const SkRRect& rrect, SkClipOp, ClipEdgeStyle) override { in onClipRRect() argument
47 void onClipPath(const SkPath& path, SkClipOp, ClipEdgeStyle) override { in onClipPath() argument
51 void onClipRegion(const SkRegion& deviceRgn, SkClipOp) override { in onClipRegion() argument
DRenderNodeDrawable.cpp99 canvas->clipRRect(SkRRect::MakeRectXY(rect, radius, radius), SkClipOp::kIntersect, true); in clipOutline()
416 canvas->clipPath(*properties.getRevealClip().getPath(), SkClipOp::kIntersect, true); in setViewProperties()
/frameworks/base/libs/hwui/apex/
Dandroid_canvas.cpp91 clipRect->bottom, SkClipOp::kIntersect); in ACanvas_clipRect()
97 clipRect->bottom, SkClipOp::kDifference); in ACanvas_clipOutRect()
/frameworks/base/libs/hwui/jni/
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), ""…
200 static SkClipOp opHandleToClipOp(jint opHandle) { in opHandleToClipOp()
210 return static_cast<SkClipOp>(rgnOp); in opHandleToClipOp()
/frameworks/base/libs/hwui/hwui/
DCanvas.h186 virtual bool clipRect(float left, float top, float right, float bottom, SkClipOp op) = 0;
187 virtual bool clipPath(const SkPath* path, SkClipOp op) = 0;
/frameworks/base/libs/hwui/tests/microbench/
DDisplayListCanvasBench.cpp135 canvas->clipRect(1, 1, 199, 199, SkClipOp::kIntersect); in BM_SkiaDisplayListCanvas_basicViewGroupDraw()