aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoregdaniel <egdaniel@google.com>2014-09-23 11:04:54 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-23 11:04:54 -0700
commitf64596d4153e5601d18f22e2ea3e26bb7112c728 (patch)
tree567d6c759741aa1aa21834e45a1ccec0a419ccc5
parentb0a8a377f832c59cee939ad721e1f87d378b7142 (diff)
downloadskia-f64596d4153e5601d18f22e2ea3e26bb7112c728.tar.gz
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.cpp5
-rw-r--r--src/gpu/GrOptDrawState.h2
2 files changed, 0 insertions, 7 deletions
diff --git a/src/gpu/GrOptDrawState.cpp b/src/gpu/GrOptDrawState.cpp
index 70209e175..8653a8bd2 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 9445d334a..b4f59d3a7 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;