Index: include/gpu/GrTypesPriv.h |
diff --git a/include/gpu/GrTypesPriv.h b/include/gpu/GrTypesPriv.h |
index e04a912d3e4b497781dbf4366973e9411c951ab9..834c185944ac6368e07c0e86881f84a9958d8888 100644 |
--- a/include/gpu/GrTypesPriv.h |
+++ b/include/gpu/GrTypesPriv.h |
@@ -212,7 +212,7 @@ enum GrVertexAttribType { |
kUByte_GrVertexAttribType, // unsigned byte, e.g. coverage |
kVec4ub_GrVertexAttribType, // vector of 4 unsigned bytes, e.g. colors |
- kVec2s_GrVertexAttribType, // vector of 2 shorts, e.g. texture coordinates |
+ kVec2us_GrVertexAttribType, // vector of 2 shorts, e.g. texture coordinates |
kInt_GrVertexAttribType, |
kUint_GrVertexAttribType, |
@@ -235,7 +235,7 @@ static inline int GrVertexAttribTypeVectorCount(GrVertexAttribType type) { |
GR_STATIC_ASSERT(3 == kVec4f_GrVertexAttribType); |
GR_STATIC_ASSERT(4 == kUByte_GrVertexAttribType); |
GR_STATIC_ASSERT(5 == kVec4ub_GrVertexAttribType); |
- GR_STATIC_ASSERT(6 == kVec2s_GrVertexAttribType); |
+ GR_STATIC_ASSERT(6 == kVec2us_GrVertexAttribType); |
GR_STATIC_ASSERT(7 == kInt_GrVertexAttribType); |
GR_STATIC_ASSERT(8 == kUint_GrVertexAttribType); |
GR_STATIC_ASSERT(SK_ARRAY_COUNT(kCounts) == kGrVertexAttribTypeCount); |
@@ -252,7 +252,7 @@ static inline size_t GrVertexAttribTypeSize(GrVertexAttribType type) { |
4*sizeof(float), // kVec4f_GrVertexAttribType |
1*sizeof(char), // kUByte_GrVertexAttribType |
4*sizeof(char), // kVec4ub_GrVertexAttribType |
- 2*sizeof(int16_t), // kVec2s_GrVertexAttribType |
+ 2*sizeof(int16_t), // kVec2us_GrVertexAttribType |
sizeof(int32_t), // kInt_GrVertexAttribType |
sizeof(uint32_t) // kUint_GrVertexAttribType |
}; |
@@ -264,7 +264,7 @@ static inline size_t GrVertexAttribTypeSize(GrVertexAttribType type) { |
GR_STATIC_ASSERT(3 == kVec4f_GrVertexAttribType); |
GR_STATIC_ASSERT(4 == kUByte_GrVertexAttribType); |
GR_STATIC_ASSERT(5 == kVec4ub_GrVertexAttribType); |
- GR_STATIC_ASSERT(6 == kVec2s_GrVertexAttribType); |
+ GR_STATIC_ASSERT(6 == kVec2us_GrVertexAttribType); |
GR_STATIC_ASSERT(7 == kInt_GrVertexAttribType); |
GR_STATIC_ASSERT(8 == kUint_GrVertexAttribType); |
GR_STATIC_ASSERT(SK_ARRAY_COUNT(kSizes) == kGrVertexAttribTypeCount); |
@@ -283,7 +283,7 @@ static inline bool GrVertexAttribTypeIsIntType(GrVertexAttribType type) { |
GR_STATIC_ASSERT(3 == kVec4f_GrVertexAttribType); |
GR_STATIC_ASSERT(4 == kUByte_GrVertexAttribType); |
GR_STATIC_ASSERT(5 == kVec4ub_GrVertexAttribType); |
- GR_STATIC_ASSERT(6 == kVec2s_GrVertexAttribType); |
+ GR_STATIC_ASSERT(6 == kVec2us_GrVertexAttribType); |
GR_STATIC_ASSERT(7 == kInt_GrVertexAttribType); |
GR_STATIC_ASSERT(8 == kUint_GrVertexAttribType); |
GR_STATIC_ASSERT(9 == kGrVertexAttribTypeCount); |
@@ -300,7 +300,7 @@ static inline GrSLType GrVertexAttribTypeToSLType(GrVertexAttribType type) { |
case kUByte_GrVertexAttribType: |
case kFloat_GrVertexAttribType: |
return kFloat_GrSLType; |
- case kVec2s_GrVertexAttribType: |
+ case kVec2us_GrVertexAttribType: |
case kVec2f_GrVertexAttribType: |
return kVec2f_GrSLType; |
case kVec3f_GrVertexAttribType: |