diff options
Diffstat (limited to 'src/gpu/ops/GrOvalOpFactory.h')
-rw-r--r-- | src/gpu/ops/GrOvalOpFactory.h | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/src/gpu/ops/GrOvalOpFactory.h b/src/gpu/ops/GrOvalOpFactory.h index 72e0fa28a4..8a51c5301e 100644 --- a/src/gpu/ops/GrOvalOpFactory.h +++ b/src/gpu/ops/GrOvalOpFactory.h @@ -11,7 +11,9 @@ #include "GrColor.h" #include "SkRefCnt.h" +class GrDrawOp; class GrLegacyMeshDrawOp; +class GrPaint; class GrShaderCaps; class GrStyle; class SkMatrix; @@ -24,26 +26,27 @@ class SkStrokeRec; */ class GrOvalOpFactory { public: - static std::unique_ptr<GrLegacyMeshDrawOp> MakeOvalOp(GrColor, - const SkMatrix& viewMatrix, - const SkRect& oval, - const SkStrokeRec& stroke, - const GrShaderCaps* shaderCaps); - static std::unique_ptr<GrLegacyMeshDrawOp> MakeRRectOp(GrColor, - bool needsDistance, - const SkMatrix& viewMatrix, - const SkRRect& rrect, - const SkStrokeRec& stroke, - const GrShaderCaps* shaderCaps); + static std::unique_ptr<GrDrawOp> MakeOvalOp(GrPaint&&, + const SkMatrix&, + const SkRect& oval, + const SkStrokeRec&, + const GrShaderCaps*); - static std::unique_ptr<GrLegacyMeshDrawOp> MakeArcOp(GrColor, - const SkMatrix& viewMatrix, - const SkRect& oval, - SkScalar startAngle, - SkScalar sweepAngle, - bool useCenter, - const GrStyle&, - const GrShaderCaps* shaderCaps); + static std::unique_ptr<GrDrawOp> MakeRRectOp(GrPaint&&, + bool needsDistance, + 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*); }; #endif // GrOvalOpFactory_DEFINED |