Index: src/gpu/gl/GrGLContext.h |
diff --git a/src/gpu/gl/GrGLContext.h b/src/gpu/gl/GrGLContext.h |
index 172cd8b86402a597659da979c1579a005afb0fbb..34f2190fba0293914e31bb47d7f8185ce1449fd3 100644 |
--- a/src/gpu/gl/GrGLContext.h |
+++ b/src/gpu/gl/GrGLContext.h |
@@ -47,6 +47,8 @@ public: |
GrGLVersion version() const { return fGLVersion; } |
GrGLSLGeneration glslGeneration() const { return fGLSLGeneration; } |
GrGLVendor vendor() const { return fVendor; } |
+ /** Is this a mesa-based driver. Does not mean it is the osmesa software rasterizer. */ |
+ bool isMesa() const { return fIsMesa; } |
const GrGLCaps* caps() const { return fGLCaps.get(); } |
GrGLCaps* caps() { return fGLCaps; } |
const GrGLExtensions& extensions() const { return fExtensions; } |
@@ -73,6 +75,7 @@ private: |
GrGLSLGeneration fGLSLGeneration; |
GrGLVendor fVendor; |
GrGLExtensions fExtensions; |
+ bool fIsMesa; |
SkAutoTUnref<GrGLCaps> fGLCaps; |
}; |