diff options
author | 2016-12-13 15:18:55 -0500 | |
---|---|---|
committer | 2016-12-14 15:14:55 +0000 | |
commit | 60c05f98aa22d89e4ef25acb4799936f5df3cff2 (patch) | |
tree | b2c13dacc7ab12b69dae8d54b929a1aac6b2dffd /src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp | |
parent | 544851b59be99217b9d59f2b88b349b997438a89 (diff) |
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>
Diffstat (limited to 'src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp')
-rw-r--r-- | src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp index dc1cd8a273..0fdb3c9c66 100644 --- a/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp +++ b/src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp @@ -123,7 +123,7 @@ static sk_sp<GrGeometryProcessor> create_fill_gp(bool tweakAlphaForCoverage, return MakeForDeviceSpace(color, coverage, localCoords, viewMatrix); } -class AAFlatteningConvexPathBatch : public GrMeshDrawOp { +class AAFlatteningConvexPathBatch final : public GrMeshDrawOp { public: DEFINE_OP_CLASS_ID @@ -377,7 +377,7 @@ DRAW_BATCH_TEST_DEFINE(AAFlatteningConvexPathBatch) { 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 @@ DRAW_BATCH_TEST_DEFINE(AAFlatteningConvexPathBatch) { miterLimit = random->nextRangeF(0.5f, 2.0f); } - return new AAFlatteningConvexPathBatch(color, viewMatrix, path, strokeWidth, + return new AAFlatteningConvexPathBatch(color, viewMatrix, path, strokeWidth, style, join, miterLimit); } |