Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(940)

Unified Diff: src/gpu/gl/GrGLContext.h

Issue 52843003: Don't check if shaders compile or program links in release Chromium (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: actually save file so it gets uploaded Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/gl/GrGLContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
};
« no previous file with comments | « no previous file | src/gpu/gl/GrGLContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698