Index: include/gpu/GrShaderVar.h |
diff --git a/include/gpu/GrShaderVar.h b/include/gpu/GrShaderVar.h |
index a13cb8cf7daf26f4c0216201c54eb04f493d0eb7..cbc074df7bd53d9c25b47e3a7971d119a25150cd 100644 |
--- a/include/gpu/GrShaderVar.h |
+++ b/include/gpu/GrShaderVar.h |
@@ -55,6 +55,16 @@ public: |
, fPrecision(kDefault_Precision) { |
} |
+ GrShaderVar(const SkString& name, GrSLType type, int arrayCount = kNonArray, |
+ Precision precision = kDefault_Precision) |
+ : fType(type) |
+ , fTypeModifier(kNone_TypeModifier) |
+ , fName(name) |
+ , fCount(arrayCount) |
+ , fPrecision(precision) { |
+ SkASSERT(kVoid_GrSLType != type); |
+ } |
+ |
GrShaderVar(const char* name, GrSLType type, int arrayCount = kNonArray, |
Precision precision = kDefault_Precision) |
: fType(type) |