Index: src/gpu/GrDrawState.h |
=================================================================== |
--- src/gpu/GrDrawState.h (revision 7930) |
+++ src/gpu/GrDrawState.h (working copy) |
@@ -38,9 +38,9 @@ |
static const int kGrVertexAttribTypeCount = kLast_GrVertexAttribType + 1; |
struct GrVertexAttrib { |
- inline GrVertexAttrib() {} |
- inline GrVertexAttrib(GrVertexAttribType type, size_t offset) : |
- fType(type), fOffset(offset) {} |
+ inline void set(GrVertexAttribType type, size_t offset) { |
+ fType = type; fOffset = offset; |
+ } |
bool operator==(const GrVertexAttrib& other) const { |
return fType == other.fType && fOffset == other.fOffset; |
}; |