aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/ccpr/GrCCDrawPathsOp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/ccpr/GrCCDrawPathsOp.h')
-rw-r--r--src/gpu/ccpr/GrCCDrawPathsOp.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gpu/ccpr/GrCCDrawPathsOp.h b/src/gpu/ccpr/GrCCDrawPathsOp.h
index 9189e5a757..f43ccd0e57 100644
--- a/src/gpu/ccpr/GrCCDrawPathsOp.h
+++ b/src/gpu/ccpr/GrCCDrawPathsOp.h
@@ -26,8 +26,13 @@ public:
DEFINE_OP_CLASS_ID
SK_DECLARE_INTERNAL_LLIST_INTERFACE(GrCCDrawPathsOp);
- GrCCDrawPathsOp(GrPaint&&, const SkIRect& clipIBounds, const SkMatrix&, const SkPath&,
- const SkRect& devBounds);
+ static GrCCDrawPathsOp* Make(GrContext*,
+ GrPaint&&,
+ const SkIRect& clipIBounds,
+ const SkMatrix&,
+ const SkPath&,
+ const SkRect& devBounds);
+
~GrCCDrawPathsOp() override;
const char* name() const override { return "GrCCDrawOp"; }
@@ -48,6 +53,9 @@ public:
void onExecute(GrOpFlushState*) override;
private:
+ GrCCDrawPathsOp(GrPaint&&, const SkIRect& clipIBounds, const SkMatrix&, const SkPath&,
+ const SkRect& devBounds);
+
struct AtlasBatch {
const GrCCAtlas* fAtlas;
int fEndInstanceIdx;