diff options
author | Brian Salomon <bsalomon@google.com> | 2017-08-16 09:41:48 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-16 14:32:28 +0000 |
commit | 7f23543d1d27452ac1ddc21cc0c9f88479920cde (patch) | |
tree | 298d9b33fa888188a32a631149b7a56c9ad7446c /src/gpu/GrGeometryProcessor.h | |
parent | c902ff8fc8bd3c385096bdbb0fec6d1ce3c231a3 (diff) |
Minor geometry processor clarification.
Some renames, comments, and override->final
Change-Id: Iebc7aeee9a64021e958f76bf4278ffff56884a56
Reviewed-on: https://skia-review.googlesource.com/35165
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrGeometryProcessor.h')
-rw-r--r-- | src/gpu/GrGeometryProcessor.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gpu/GrGeometryProcessor.h b/src/gpu/GrGeometryProcessor.h index 086d9baa53..d8962c21ac 100644 --- a/src/gpu/GrGeometryProcessor.h +++ b/src/gpu/GrGeometryProcessor.h @@ -24,9 +24,9 @@ public: , fLocalCoordsType(kUnused_LocalCoordsType) , fSampleShading(0.0) {} - bool willUseGeoShader() const override { return fWillUseGeoShader; } + bool willUseGeoShader() const final { return fWillUseGeoShader; } - bool hasExplicitLocalCoords() const override { + bool hasExplicitLocalCoords() const final { return kHasExplicit_LocalCoordsType == fLocalCoordsType; } @@ -35,9 +35,7 @@ public: * instance, if sampleShading is 0.5 in MSAA16 mode, the fragment shader will run a minimum of * 8 times per pixel. The default value is zero. */ - float getSampleShading() const override { - return fSampleShading; - } + float getSampleShading() const final { return fSampleShading; } protected: void setWillUseGeoShader() { fWillUseGeoShader = true; } |