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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/ccpr/GrCCDrawPathsOp.h b/src/gpu/ccpr/GrCCDrawPathsOp.h
index 92ba3dd4c7..5406d893f7 100644
--- a/src/gpu/ccpr/GrCCDrawPathsOp.h
+++ b/src/gpu/ccpr/GrCCDrawPathsOp.h
@@ -48,6 +48,11 @@ public:
void onExecute(GrOpFlushState*) override;
private:
+ SkPath::FillType getFillType() const {
+ SkASSERT(fNumDraws >= 1);
+ return fDraws.head().fPath.getFillType();
+ }
+
struct AtlasBatch {
const GrCCAtlas* fAtlas;
int fEndInstanceIdx;