| Index: src/gpu/gl/GrGLContext.h
|
| diff --git a/src/gpu/gl/GrGLContext.h b/src/gpu/gl/GrGLContext.h
|
| index b6e1ab3942ce803155963a27d9c5eea9b81273e2..d2174c56c8c23310cabdaaa0e1f547948da609b1 100644
|
| --- a/src/gpu/gl/GrGLContext.h
|
| +++ b/src/gpu/gl/GrGLContext.h
|
| @@ -50,6 +50,10 @@ public:
|
| GrGLRenderer renderer() const { return fRenderer; }
|
| /** Is this a mesa-based driver. Does not mean it is the osmesa software rasterizer. */
|
| bool isMesa() const { return fIsMesa; }
|
| + /** Are we running inside Chromium (using the command buffer)? We make some different tradeoffs
|
| + about what errors to check for because queries are synchronous. We should probably expose
|
| + this as an option for clients other than Chromium. */
|
| + bool isChromium() const { return fIsChromium; }
|
| const GrGLCaps* caps() const { return fGLCaps.get(); }
|
| GrGLCaps* caps() { return fGLCaps; }
|
| const GrGLExtensions& extensions() const { return fExtensions; }
|
| @@ -78,6 +82,7 @@ private:
|
| GrGLRenderer fRenderer;
|
| GrGLExtensions fExtensions;
|
| bool fIsMesa;
|
| + bool fIsChromium;
|
| SkAutoTUnref<GrGLCaps> fGLCaps;
|
| };
|
|
|
|
|