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/GrShadowRRectBatch.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/GrShadowRRectBatch.cpp')
-rwxr-xr-x | src/gpu/batches/GrShadowRRectBatch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/batches/GrShadowRRectBatch.cpp b/src/gpu/batches/GrShadowRRectBatch.cpp index b2997879cf..35a3da7fdb 100755 --- a/src/gpu/batches/GrShadowRRectBatch.cpp +++ b/src/gpu/batches/GrShadowRRectBatch.cpp @@ -225,7 +225,7 @@ private: // The inner radius in the vertex data must be specified in normalized space. innerRadius = innerRadius / outerRadius; - + SkPoint center = SkPoint::Make(bounds.centerX(), bounds.centerY()); SkScalar halfWidth = 0.5f*bounds.width(); SkScalar octOffset = 0.41421356237f; // sqrt(2) - 1 @@ -504,7 +504,7 @@ static const uint16_t* rrect_type_to_indices(RRectType type) { // each vertex is also given the normalized x & y distance from the interior rect's edge // the GP takes the min of those depths +1 to get the normalized distance to the outer edge -class ShadowCircularRRectBatch : public GrMeshDrawOp { +class ShadowCircularRRectBatch final : public GrMeshDrawOp { public: DEFINE_OP_CLASS_ID |