Mark the leaf classes of GrOp final.
Change-Id: Ie8acbca972ce8628fc0a2a216a62c34c2a91059a
Reviewed-on: https://skia-review.googlesource.com/5927
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
index dc1cd8a..0fdb3c9 100644
--- a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
+++ b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp
@@ -123,7 +123,7 @@
return MakeForDeviceSpace(color, coverage, localCoords, viewMatrix);
}
-class AAFlatteningConvexPathBatch : public GrMeshDrawOp {
+class AAFlatteningConvexPathBatch final : public GrMeshDrawOp {
public:
DEFINE_OP_CLASS_ID
@@ -377,7 +377,7 @@
SkPath path = GrTest::TestPathConvex(random);
SkStrokeRec::Style styles[3] = { SkStrokeRec::kFill_Style,
- SkStrokeRec::kStroke_Style,
+ SkStrokeRec::kStroke_Style,
SkStrokeRec::kStrokeAndFill_Style };
SkStrokeRec::Style style = styles[random->nextU() % 3];
@@ -396,7 +396,7 @@
miterLimit = random->nextRangeF(0.5f, 2.0f);
}
- return new AAFlatteningConvexPathBatch(color, viewMatrix, path, strokeWidth,
+ return new AAFlatteningConvexPathBatch(color, viewMatrix, path, strokeWidth,
style, join, miterLimit);
}