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; |