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

Unified Diff: ui/gl/gl_implementation_x11.cc

Issue 2129043003: Make dynamic mock bindings initialization consistent with other GL implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « ui/gl/gl_implementation_win.cc ('k') | ui/gl/gpu_timing_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_implementation_x11.cc
diff --git a/ui/gl/gl_implementation_x11.cc b/ui/gl/gl_implementation_x11.cc
index de19d7167a2d74a2695fd53dea3d344c92a7cbbb..a59ee34284443b12a39c8d84d8ede9939b92595a 100644
--- a/ui/gl/gl_implementation_x11.cc
+++ b/ui/gl/gl_implementation_x11.cc
@@ -19,31 +19,6 @@ void GetAllowedGLImplementations(std::vector<GLImplementation>* impls) {
impls->push_back(kGLImplementationOSMesaGL);
}
-bool InitializeDynamicGLBindings(GLImplementation implementation,
- GLContext* context) {
- switch (implementation) {
- case kGLImplementationOSMesaGL:
- case kGLImplementationDesktopGL:
- case kGLImplementationEGLGLES2:
- InitializeDynamicGLBindingsGL(context);
- break;
- case kGLImplementationMockGL:
- if (!context) {
- scoped_refptr<GLContextStubWithExtensions> mock_context(
- new GLContextStubWithExtensions());
- mock_context->SetGLVersionString("3.0");
- InitializeDynamicGLBindingsGL(mock_context.get());
- } else {
- InitializeDynamicGLBindingsGL(context);
- }
- break;
- default:
- return false;
- }
-
- return true;
-}
-
bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) {
switch (GetGLImplementation()) {
case kGLImplementationDesktopGL:
« no previous file with comments | « ui/gl/gl_implementation_win.cc ('k') | ui/gl/gpu_timing_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698