Virtualize SkGLContext with subclasses SkNativeGLContext and SkMesaGLContext, allow both in gm
Review URL: http://codereview.appspot.com/5307045/
git-svn-id: http://skia.googlecode.com/svn/trunk@2499 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/GrGLProgram.h b/src/gpu/GrGLProgram.h
index 678a56d..e0ae4eb 100644
--- a/src/gpu/GrGLProgram.h
+++ b/src/gpu/GrGLProgram.h
@@ -35,10 +35,21 @@
*/
class GrGLProgram {
public:
+ // Limited set of GLSL versions we build shaders for. Caller should round
+ // down the GLSL version to one of these enums.
enum GLSLVersion {
- k120_GLSLVersion, // Desktop GLSL 1.20 and ES2 shading lang
- k130_GLSLVersion, // Desktop GLSL 1.30
- k150_GLSLVersion // Dekstop GLSL 1.50
+ /**
+ * Desktop GLSL 1.10 and ES2 shading lang (based on desktop GLSL 1.20)
+ */
+ k110_GLSLVersion,
+ /**
+ * Desktop GLSL 1.30
+ */
+ k130_GLSLVersion,
+ /**
+ * Dekstop GLSL 1.50
+ */
+ k150_GLSLVersion,
};
class CachedData;