Index: src/gpu/gl/GrGLProgram.h |
=================================================================== |
--- src/gpu/gl/GrGLProgram.h (revision 7952) |
+++ src/gpu/gl/GrGLProgram.h (working copy) |
@@ -165,6 +165,14 @@ |
kDualSrcOutputCnt |
}; |
+ struct AttribPair { |
+ void set(int index, const char* name) { |
+ fIndex = index; fName = name; |
+ } |
+ int fIndex; |
+ const char* fName; |
+ }; |
+ |
// TODO: remove these two members when edge-aa can be rewritten as a GrEffect. |
GrDrawState::VertexEdgeType fVertexEdgeType; |
// should the FS discard if the edge-aa coverage is zero (to avoid stencil manipulation) |
@@ -194,6 +202,8 @@ |
int8_t fEdgeAttributeIndex; |
int8_t fTexCoordAttributeIndex; |
+ SkSTArray<2, AttribPair, true> fEffectAttributes; |
+ |
friend class GrGLProgram; |
}; |