Index: src/gpu/GrEffect.cpp |
=================================================================== |
--- src/gpu/GrEffect.cpp (revision 8091) |
+++ src/gpu/GrEffect.cpp (working copy) |
@@ -90,6 +90,11 @@ |
fTextureAccesses.push_back(access); |
} |
+void GrEffect::addVertexAttrib(GrSLType type) { |
+ GrAssert(fVertexAttribTypes.count() < kMaxVertexAttribs); |
+ fVertexAttribTypes.push_back(type); |
+} |
+ |
void* GrEffect::operator new(size_t size) { |
return GrEffect_Globals::GetTLS()->allocate(size); |
} |