aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ops/GrOvalOpFactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/ops/GrOvalOpFactory.h')
-rw-r--r--src/gpu/ops/GrOvalOpFactory.h40
1 files changed, 22 insertions, 18 deletions
diff --git a/src/gpu/ops/GrOvalOpFactory.h b/src/gpu/ops/GrOvalOpFactory.h
index 1bdf3ee6f6..d31e09ed9c 100644
--- a/src/gpu/ops/GrOvalOpFactory.h
+++ b/src/gpu/ops/GrOvalOpFactory.h
@@ -22,29 +22,33 @@ class SkStrokeRec;
/*
* This namespace wraps helper functions that draw ovals, rrects, and arcs (filled & stroked)
+ * The ops always use coverage even when their non-AA.
*/
class GrOvalOpFactory {
public:
- static std::unique_ptr<GrDrawOp> MakeOvalOp(GrPaint&&,
- const SkMatrix&,
- const SkRect& oval,
- const SkStrokeRec&,
- const GrShaderCaps*);
+ static std::unique_ptr<GrDrawOp> MakeCoverageOvalOp(GrPaint&&,
+ GrAA,
+ const SkMatrix&,
+ const SkRect& oval,
+ const SkStrokeRec&,
+ const GrShaderCaps*);
- static std::unique_ptr<GrDrawOp> MakeRRectOp(GrPaint&&,
- const SkMatrix&,
- const SkRRect&,
- const SkStrokeRec&,
- const GrShaderCaps*);
+ static std::unique_ptr<GrDrawOp> MakeCoverageRRectOp(GrPaint&&,
+ GrAA,
+ const SkMatrix&,
+ const SkRRect&,
+ const SkStrokeRec&,
+ const GrShaderCaps*);
- static std::unique_ptr<GrDrawOp> MakeArcOp(GrPaint&&,
- const SkMatrix&,
- const SkRect& oval,
- SkScalar startAngle,
- SkScalar sweepAngle,
- bool useCenter,
- const GrStyle&,
- const GrShaderCaps*);
+ static std::unique_ptr<GrDrawOp> MakeCoverageArcOp(GrPaint&&,
+ GrAA,
+ const SkMatrix&,
+ const SkRect& oval,
+ SkScalar startAngle,
+ SkScalar sweepAngle,
+ bool useCenter,
+ const GrStyle&,
+ const GrShaderCaps*);
};
#endif // GrOvalOpFactory_DEFINED