Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: src/gpu/GrOptDrawState.cpp

Issue 578323003: Remove unused fRequiresVertexShader data member from OptDrawState (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebased Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrOptDrawState.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrOptDrawState.cpp
diff --git a/src/gpu/GrOptDrawState.cpp b/src/gpu/GrOptDrawState.cpp
index 70209e17593ccb9cf5b29c28c422b2df6e38b191..8653a8bd2c480ed528d088c57a375f07eb04f059 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);
}
}
« no previous file with comments | « src/gpu/GrOptDrawState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698