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

Unified Diff: include/gpu/GrEffectStage.h

Issue 504203004: Attach GrOptDrawState into shader building pipeline (Closed) Base URL: https://skia.googlesource.com/skia.git@opt2
Patch Set: Remove BlendOpt Cache 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 | « no previous file | src/gpu/GrDrawState.h » ('j') | src/gpu/GrOptDrawState.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrEffectStage.h
diff --git a/include/gpu/GrEffectStage.h b/include/gpu/GrEffectStage.h
index 44997901a4e050dbb250afbe1a597b3777cfb52e..0b2b807a8ab93328299a1d3fb4336c70344e81ca 100644
--- a/include/gpu/GrEffectStage.h
+++ b/include/gpu/GrEffectStage.h
@@ -138,6 +138,14 @@ public:
void convertToPendingExec() { fEffect.convertToPendingExec(); }
+ void remapAttribIndices(const int* map) {
+ for (int i = 0; i < 2; ++i) {
+ if (-1 != fVertexAttribIndices[i]) {
+ fVertexAttribIndices[i] = map[fVertexAttribIndices[i]];
+ }
+ }
+ }
+
private:
bool fCoordChangeMatrixSet;
SkMatrix fCoordChangeMatrix;
« no previous file with comments | « no previous file | src/gpu/GrDrawState.h » ('j') | src/gpu/GrOptDrawState.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698