Index: include/gpu/GrShaderVar.h |
diff --git a/include/gpu/GrShaderVar.h b/include/gpu/GrShaderVar.h |
index 967ae826899f703c2ad64e17b6930cc2f27ea19a..05ae36aab8901eace4f300ae69d5cc7efe9246e8 100644 |
--- a/include/gpu/GrShaderVar.h |
+++ b/include/gpu/GrShaderVar.h |
@@ -42,7 +42,10 @@ public: |
// Default precision is medium. This is because on OpenGL ES 2 highp support is not |
// guaranteed. On (non-ES) OpenGL the specifiers have no effect on precision. |
kDefault_Precision = kMedium_Precision, |
+ |
+ kLast_Precision = kHigh_Precision |
}; |
+ static const int kPrecisionCount = kLast_Precision + 1; |
/** |
* Defaults to a float with no precision specifier |