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

Unified Diff: include/gpu/gl/GrGLExtensions.h

Issue 133413003: Rename GrGLBinding->GrGLStandard, no longer a bitfield (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: actually fix enum names? Created 6 years, 11 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 | include/gpu/gl/GrGLInterface.h » ('j') | src/gpu/gl/GrGLContext.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/gl/GrGLExtensions.h
diff --git a/include/gpu/gl/GrGLExtensions.h b/include/gpu/gl/GrGLExtensions.h
index ffb673336a635cc01d1e344b884633abb16d88c4..45f698ef29dfac0384453c0e4401e31f087d489e 100644
--- a/include/gpu/gl/GrGLExtensions.h
+++ b/include/gpu/gl/GrGLExtensions.h
@@ -19,16 +19,18 @@
*/
class GrGLExtensions {
public:
- bool init(GrGLBinding binding, const GrGLInterface* iface) {
- SkASSERT(binding & iface->fBindingsExported);
- return this->init(binding, iface->fGetString, iface->fGetStringi, iface->fGetIntegerv);
+ bool init(const GrGLInterface* iface) {
+ return this->init(iface->fStandard,
+ iface->fGetString,
+ iface->fGetStringi,
+ iface->fGetIntegerv);
}
/**
* We sometimes need to use this class without having yet created a GrGLInterface. This version
* of init expects that getString is always non-NULL while getIntegerv and getStringi are non-
* NULL if on desktop GL with version 3.0 or higher. Otherwise it will fail.
*/
- bool init(GrGLBinding binding,
+ bool init(GrGLStandard standard,
GrGLGetStringProc getString,
GrGLGetStringiProc getStringi,
GrGLGetIntegervProc getIntegerv);
« no previous file with comments | « no previous file | include/gpu/gl/GrGLInterface.h » ('j') | src/gpu/gl/GrGLContext.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698