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

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

Issue 12328111: Use glGetStringi to get extensions when available. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 10 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 | « include/gpu/gl/SkGLContext.h ('k') | src/gpu/gl/GrGLContextInfo.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLContextInfo.h
===================================================================
--- src/gpu/gl/GrGLContextInfo.h (revision 7868)
+++ src/gpu/gl/GrGLContextInfo.h (working copy)
@@ -9,6 +9,7 @@
#ifndef GrGLContextInfo_DEFINED
#define GrGLContextInfo_DEFINED
+#include "gl/GrGLExtensions.h"
#include "gl/GrGLInterface.h"
#include "GrGLCaps.h"
#include "GrGLSL.h"
@@ -70,7 +71,7 @@
if (!this->isInitialized()) {
return false;
}
- return GrGLHasExtensionFromString(ext, fExtensionString.c_str());
+ return fExtensions.has(ext);
}
private:
@@ -81,7 +82,7 @@
GrGLVersion fGLVersion;
GrGLSLGeneration fGLSLGeneration;
GrGLVendor fVendor;
- SkString fExtensionString;
+ GrGLExtensions fExtensions;
GrGLCaps fGLCaps;
};
« no previous file with comments | « include/gpu/gl/SkGLContext.h ('k') | src/gpu/gl/GrGLContextInfo.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698