From 60c05f98aa22d89e4ef25acb4799936f5df3cff2 Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Tue, 13 Dec 2016 15:18:55 -0500 Subject: Mark the leaf classes of GrOp final. Change-Id: Ie8acbca972ce8628fc0a2a216a62c34c2a91059a Reviewed-on: https://skia-review.googlesource.com/5927 Commit-Queue: Herb Derby Reviewed-by: Brian Salomon --- src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gpu/batches/GrAALinearizingConvexPathRenderer.cpp') 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 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); } -- cgit v1.2.3