diff options
author | joshualitt <joshualitt@chromium.org> | 2015-05-14 10:09:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-14 10:09:14 -0700 |
commit | e578a95d3ab16544794b94da4e7ae13fc2ce6244 (patch) | |
tree | aaa10af66b9f6acee7444e827b91825ae2fa313d /src/gpu/GrPathProcessor.h | |
parent | 5b9f352ff1e245dd48e200f8f8b683f4569547d3 (diff) |
Remove viewmatrix from GrGeometryProcessor base class
BUG=skia:
Review URL: https://codereview.chromium.org/1127953003
Diffstat (limited to 'src/gpu/GrPathProcessor.h')
-rw-r--r-- | src/gpu/GrPathProcessor.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrPathProcessor.h b/src/gpu/GrPathProcessor.h index 5b233782c6..39b0b7afef 100644 --- a/src/gpu/GrPathProcessor.h +++ b/src/gpu/GrPathProcessor.h @@ -37,6 +37,7 @@ public: const char* name() const override { return "PathProcessor"; } + const SkMatrix& viewMatrix() const { return fViewMatrix; } GrColor color() const { return fColor; } void getInvariantOutputColor(GrInitInvariantOutput* out) const override; @@ -51,12 +52,11 @@ public: virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, const GrGLSLCaps& caps) const override; -protected: - GrPathProcessor(GrColor color, const SkMatrix& viewMatrix, const SkMatrix& localMatrix); - private: + GrPathProcessor(GrColor color, const SkMatrix& viewMatrix, const SkMatrix& localMatrix); bool hasExplicitLocalCoords() const override { return false; } + const SkMatrix fViewMatrix; GrColor fColor; typedef GrPrimitiveProcessor INHERITED; |