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

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

Issue 14864002: Fix GL extension printing on core profiles. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 8 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
Index: src/gpu/gl/GrGLContext.h
===================================================================
--- src/gpu/gl/GrGLContext.h (revision 8966)
+++ src/gpu/gl/GrGLContext.h (working copy)
@@ -49,10 +49,10 @@
GrGLVendor vendor() const { return fVendor; }
const GrGLCaps* caps() const { return fGLCaps.get(); }
GrGLCaps* caps() { return fGLCaps; }
+ const GrGLExtensions& extensions() const { return fExtensions; }
/**
- * Checks for extension support using a cached copy of the GL_EXTENSIONS
- * string.
+ * Shortcut for extensions().has(ext);
*/
bool hasExtension(const char* ext) const {
if (!this->isInitialized()) {

Powered by Google App Engine
This is Rietveld 408576698