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

Unified Diff: ui/gl/init/gl_factory.cc

Issue 2543313002: ui/gl: rename ClearGLBindings to ShutdownGL (Closed)
Patch Set: Created 4 years 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 | « ui/gl/init/gl_factory.h ('k') | ui/gl/init/gl_initializer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/init/gl_factory.cc
diff --git a/ui/gl/init/gl_factory.cc b/ui/gl/init/gl_factory.cc
index 3c17fc777bfe178be221a9c13d742f99d6823e19..0cade4082c907f5d50da62f72316cb234ccef29c 100644
--- a/ui/gl/init/gl_factory.cc
+++ b/ui/gl/init/gl_factory.cc
@@ -64,12 +64,12 @@ bool InitializeGLOneOffImplementation(GLImplementation impl,
bool initialized =
InitializeStaticGLBindings(impl) && InitializeGLOneOffPlatform();
if (!initialized && fallback_to_osmesa) {
- ClearGLBindings();
+ ShutdownGL();
initialized = InitializeStaticGLBindings(kGLImplementationOSMesaGL) &&
InitializeGLOneOffPlatform();
}
if (!initialized)
- ClearGLBindings();
+ ShutdownGL();
if (initialized) {
DVLOG(1) << "Using " << GetGLImplementationName(GetGLImplementation())
@@ -82,8 +82,8 @@ bool InitializeGLOneOffImplementation(GLImplementation impl,
return initialized;
}
-void ClearGLBindings() {
- ClearGLBindingsPlatform();
+void ShutdownGL() {
+ ShutdownGLPlatform();
SetGLImplementation(kGLImplementationNone);
UnloadGLNativeLibraries();
« no previous file with comments | « ui/gl/init/gl_factory.h ('k') | ui/gl/init/gl_initializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698