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

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

Issue 2731733002: Convert Ozone GL OSMesa implementation. (Closed)
Patch Set: Cleanup. Created 3 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
Index: ui/gl/init/gl_initializer_ozone.cc
diff --git a/ui/gl/init/gl_initializer_ozone.cc b/ui/gl/init/gl_initializer_ozone.cc
index 6e5fc67f8e8cd44c0412565fd362f90f77621c43..a42e220e2ba6c3e17e88acf04cd4d6cfda43bc6a 100644
--- a/ui/gl/init/gl_initializer_ozone.cc
+++ b/ui/gl/init/gl_initializer_ozone.cc
@@ -7,8 +7,6 @@
#include "base/logging.h"
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_gl_api_implementation.h"
-#include "ui/gl/gl_implementation_osmesa.h"
-#include "ui/gl/gl_osmesa_api_implementation.h"
#include "ui/gl/gl_surface.h"
#include "ui/gl/init/ozone_util.h"
@@ -20,13 +18,13 @@ bool InitializeGLOneOffPlatform() {
return GetGLOzone()->InitializeGLOneOffPlatform();
switch (GetGLImplementation()) {
- case kGLImplementationOSMesaGL:
case kGLImplementationMockGL:
case kGLImplementationStubGL:
return true;
default:
- return false;
+ NOTREACHED();
}
+ return false;
}
bool InitializeStaticGLBindings(GLImplementation implementation) {
@@ -41,8 +39,6 @@ bool InitializeStaticGLBindings(GLImplementation implementation) {
}
switch (implementation) {
- case kGLImplementationOSMesaGL:
- return InitializeStaticGLBindingsOSMesaGL();
case kGLImplementationMockGL:
case kGLImplementationStubGL:
SetGLImplementation(implementation);
@@ -62,7 +58,6 @@ void InitializeDebugGLBindings() {
}
InitializeDebugGLBindingsGL();
- InitializeDebugGLBindingsOSMESA();
}
void ShutdownGLPlatform() {
@@ -72,7 +67,6 @@ void ShutdownGLPlatform() {
}
ClearBindingsGL();
- ClearBindingsOSMESA();
}
} // namespace init

Powered by Google App Engine
This is Rietveld 408576698