diff options
author | joshualitt <joshualitt@chromium.org> | 2015-01-21 11:52:36 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-01-21 11:52:36 -0800 |
commit | 17e7314e0e3085ec6021997d7c0593c339ba6a2e (patch) | |
tree | d6711e665e1d309d3790dcfc6c7058bbf93f54d8 /src/gpu/GrGeometryProcessor.h | |
parent | d4742fa550bafce5225cd267437eadef177c5945 (diff) |
remove drawtype
BUG=skia:
Review URL: https://codereview.chromium.org/862933005
Diffstat (limited to 'src/gpu/GrGeometryProcessor.h')
-rw-r--r-- | src/gpu/GrGeometryProcessor.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/gpu/GrGeometryProcessor.h b/src/gpu/GrGeometryProcessor.h index 97271b94d3..c55b9afc79 100644 --- a/src/gpu/GrGeometryProcessor.h +++ b/src/gpu/GrGeometryProcessor.h @@ -169,12 +169,16 @@ public: virtual GrGLPrimitiveProcessor* createGLInstance(const GrBatchTracker& bt, const GrGLCaps& caps) const = 0; + bool isPathRendering() const { return fIsPathRendering; } + protected: - GrPrimitiveProcessor(const SkMatrix& viewMatrix, const SkMatrix& localMatrix) + GrPrimitiveProcessor(const SkMatrix& viewMatrix, const SkMatrix& localMatrix, + bool isPathRendering) : fNumAttribs(0) , fVertexStride(0) , fViewMatrix(viewMatrix) - , fLocalMatrix(localMatrix) {} + , fLocalMatrix(localMatrix) + , fIsPathRendering(isPathRendering) {} /* * CanCombineOutput will return true if two draws are 'batchable' from a color perspective. @@ -215,6 +219,7 @@ private: const SkMatrix fViewMatrix; SkMatrix fLocalMatrix; + bool fIsPathRendering; typedef GrProcessor INHERITED; }; @@ -234,7 +239,7 @@ public: const SkMatrix& viewMatrix = SkMatrix::I(), const SkMatrix& localMatrix = SkMatrix::I(), bool opaqueVertexColors = false) - : INHERITED(viewMatrix, localMatrix) + : INHERITED(viewMatrix, localMatrix, false) , fColor(color) , fOpaqueVertexColors(opaqueVertexColors) , fWillUseGeoShader(false) |