| Index: src/gpu/gl/GrGLContext.h
|
| diff --git a/src/gpu/gl/GrGLContext.h b/src/gpu/gl/GrGLContext.h
|
| index b6e1ab3942ce803155963a27d9c5eea9b81273e2..f3320b23adfbab4acd52c510b298436a0c87cec1 100644
|
| --- a/src/gpu/gl/GrGLContext.h
|
| +++ b/src/gpu/gl/GrGLContext.h
|
| @@ -50,6 +50,8 @@ 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)? */
|
| + bool isChromium() const { return fIsChromium; }
|
| const GrGLCaps* caps() const { return fGLCaps.get(); }
|
| GrGLCaps* caps() { return fGLCaps; }
|
| const GrGLExtensions& extensions() const { return fExtensions; }
|
| @@ -78,6 +80,7 @@ private:
|
| GrGLRenderer fRenderer;
|
| GrGLExtensions fExtensions;
|
| bool fIsMesa;
|
| + bool fIsChromium;
|
| SkAutoTUnref<GrGLCaps> fGLCaps;
|
| };
|
|
|
|
|