| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ui/gl/gl_implementation.h" | |
| 6 | |
| 7 #include "base/command_line.h" | |
| 8 #include "base/logging.h" | |
| 9 #include "ui/gl/gl_context_stub_with_extensions.h" | |
| 10 #include "ui/gl/gl_gl_api_implementation.h" | |
| 11 #include "ui/gl/gl_osmesa_api_implementation.h" | |
| 12 | |
| 13 namespace gl { | |
| 14 | |
| 15 void GetAllowedGLImplementations(std::vector<GLImplementation>* impls) { | |
| 16 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | |
| 17 switches::kEnableUnsafeES3APIs)) { | |
| 18 impls->push_back(kGLImplementationDesktopGLCoreProfile); | |
| 19 } | |
| 20 impls->push_back(kGLImplementationDesktopGL); | |
| 21 impls->push_back(kGLImplementationAppleGL); | |
| 22 impls->push_back(kGLImplementationOSMesaGL); | |
| 23 } | |
| 24 | |
| 25 bool GetGLWindowSystemBindingInfo(GLWindowSystemBindingInfo* info) { | |
| 26 return false; | |
| 27 } | |
| 28 | |
| 29 } // namespace gl | |
| OLD | NEW |