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

Side by Side Diff: ui/gl/gl_implementation_win.cc

Issue 893213002: Revert of Make GL bindings conditional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « ui/gl/gl_implementation_ozone.cc ('k') | ui/gl/gl_implementation_x11.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <vector> 5 #include <vector>
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/base_paths.h" 8 #include "base/base_paths.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 return false; 313 return false;
314 } 314 }
315 315
316 return true; 316 return true;
317 } 317 }
318 318
319 bool InitializeDynamicGLBindings(GLImplementation implementation, 319 bool InitializeDynamicGLBindings(GLImplementation implementation,
320 GLContext* context) { 320 GLContext* context) {
321 switch (implementation) { 321 switch (implementation) {
322 case kGLImplementationOSMesaGL: 322 case kGLImplementationOSMesaGL:
323 InitializeDynamicGLBindingsGL(context);
324 InitializeDynamicGLBindingsOSMESA(context);
325 break;
323 case kGLImplementationEGLGLES2: 326 case kGLImplementationEGLGLES2:
327 InitializeDynamicGLBindingsGL(context);
328 InitializeDynamicGLBindingsEGL(context);
329 break;
324 case kGLImplementationDesktopGL: 330 case kGLImplementationDesktopGL:
325 InitializeDynamicGLBindingsGL(context); 331 InitializeDynamicGLBindingsGL(context);
332 InitializeDynamicGLBindingsWGL(context);
326 break; 333 break;
327 case kGLImplementationMockGL: 334 case kGLImplementationMockGL:
328 if (!context) { 335 if (!context) {
329 scoped_refptr<GLContextStubWithExtensions> mock_context( 336 scoped_refptr<GLContextStubWithExtensions> mock_context(
330 new GLContextStubWithExtensions()); 337 new GLContextStubWithExtensions());
331 mock_context->SetGLVersionString("3.0"); 338 mock_context->SetGLVersionString("3.0");
332 InitializeDynamicGLBindingsGL(mock_context.get()); 339 InitializeDynamicGLBindingsGL(mock_context.get());
333 } else 340 } else
334 InitializeDynamicGLBindingsGL(context); 341 InitializeDynamicGLBindingsGL(context);
335 break; 342 break;
(...skipping 25 matching lines...) Expand all
361 case kGLImplementationDesktopGL: 368 case kGLImplementationDesktopGL:
362 return GetGLWindowSystemBindingInfoWGL(info); 369 return GetGLWindowSystemBindingInfoWGL(info);
363 case kGLImplementationEGLGLES2: 370 case kGLImplementationEGLGLES2:
364 return GetGLWindowSystemBindingInfoEGL(info); 371 return GetGLWindowSystemBindingInfoEGL(info);
365 default: 372 default:
366 return false; 373 return false;
367 } 374 }
368 } 375 }
369 376
370 } // namespace gfx 377 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_implementation_ozone.cc ('k') | ui/gl/gl_implementation_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698