diff options
author | egdaniel <egdaniel@google.com> | 2014-09-23 11:04:54 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-09-23 11:04:54 -0700 |
commit | f64596d4153e5601d18f22e2ea3e26bb7112c728 (patch) | |
tree | 567d6c759741aa1aa21834e45a1ccec0a419ccc5 | |
parent | b0a8a377f832c59cee939ad721e1f87d378b7142 (diff) |
Remove unused fRequiresVertexShader data member from OptDrawState
BUG=skia:
R=jvanverth@google.com
Author: egdaniel@google.com
Review URL: https://codereview.chromium.org/578323003
-rw-r--r-- | src/gpu/GrOptDrawState.cpp | 5 | ||||
-rw-r--r-- | src/gpu/GrOptDrawState.h | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/src/gpu/GrOptDrawState.cpp b/src/gpu/GrOptDrawState.cpp index 70209e1759..8653a8bd2c 100644 --- a/src/gpu/GrOptDrawState.cpp +++ b/src/gpu/GrOptDrawState.cpp @@ -245,10 +245,6 @@ void GrOptDrawState::getStageStats() { // actually generating some effect code fRequiresLocalCoordAttrib = this->hasLocalCoordAttribute() && this->numTotalStages() > 0; - // if 1 == fVACount then that VA must be position, otherwise it contains some attribute which - // will require a vertexShader - fRequiresVertexShader = fVACount > 1; - fReadsDst = false; fReadsFragPosition = false; @@ -263,7 +259,6 @@ void GrOptDrawState::getStageStats() { if (this->hasGeometryProcessor()) { const GrGeometryStage& stage = *this->getGeometryProcessor(); fReadsFragPosition = fReadsFragPosition || stage.getProcessor()->willReadFragmentPosition(); - SkASSERT(fRequiresVertexShader); } } diff --git a/src/gpu/GrOptDrawState.h b/src/gpu/GrOptDrawState.h index 9445d334a2..b4f59d3a7b 100644 --- a/src/gpu/GrOptDrawState.h +++ b/src/gpu/GrOptDrawState.h @@ -25,7 +25,6 @@ public: bool readsDst() const { return fReadsDst; } bool readsFragPosition() const { return fReadsFragPosition; } - bool requiresVertexShader() const { return fRequiresVertexShader; } bool requiresLocalCoordAttrib() const { return fRequiresLocalCoordAttrib; } /////////////////////////////////////////////////////////////////////////// @@ -123,7 +122,6 @@ private: // These flags give aggregated info on the effect stages that are used when building programs. bool fReadsDst; bool fReadsFragPosition; - bool fRequiresVertexShader; bool fRequiresLocalCoordAttrib; SkAutoSTArray<4, GrVertexAttrib> fOptVA; |