| OLD | NEW |
| 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 #ifndef UI_GL_GL_IMPLEMENTATION_H_ | 5 #ifndef UI_GL_GL_IMPLEMENTATION_H_ |
| 6 #define UI_GL_GL_IMPLEMENTATION_H_ | 6 #define UI_GL_GL_IMPLEMENTATION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/native_library.h" | 12 #include "base/native_library.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "ui/gl/gl_export.h" | 14 #include "ui/gl/gl_export.h" |
| 15 #include "ui/gl/gl_switches.h" | 15 #include "ui/gl/gl_switches.h" |
| 16 | 16 |
| 17 namespace gfx { | 17 namespace gl { |
| 18 | 18 |
| 19 class GLContext; | 19 class GLContext; |
| 20 | 20 |
| 21 // The GL implementation currently in use. | 21 // The GL implementation currently in use. |
| 22 enum GLImplementation { | 22 enum GLImplementation { |
| 23 kGLImplementationNone, | 23 kGLImplementationNone, |
| 24 kGLImplementationDesktopGL, | 24 kGLImplementationDesktopGL, |
| 25 kGLImplementationDesktopGLCoreProfile, | 25 kGLImplementationDesktopGLCoreProfile, |
| 26 kGLImplementationOSMesaGL, | 26 kGLImplementationOSMesaGL, |
| 27 kGLImplementationAppleGL, | 27 kGLImplementationAppleGL, |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 // Helper for the GL bindings implementation to understand whether | 134 // Helper for the GL bindings implementation to understand whether |
| 135 // glGetString(GL_EXTENSIONS) or glGetStringi(GL_EXTENSIONS, i) will | 135 // glGetString(GL_EXTENSIONS) or glGetStringi(GL_EXTENSIONS, i) will |
| 136 // be used in the function above. | 136 // be used in the function above. |
| 137 GL_EXPORT bool WillUseGLGetStringForExtensions(); | 137 GL_EXPORT bool WillUseGLGetStringForExtensions(); |
| 138 | 138 |
| 139 // Helpers to load a library and log error on failure. | 139 // Helpers to load a library and log error on failure. |
| 140 base::NativeLibrary LoadLibraryAndPrintError( | 140 base::NativeLibrary LoadLibraryAndPrintError( |
| 141 const base::FilePath::CharType* filename); | 141 const base::FilePath::CharType* filename); |
| 142 base::NativeLibrary LoadLibraryAndPrintError(const base::FilePath& filename); | 142 base::NativeLibrary LoadLibraryAndPrintError(const base::FilePath& filename); |
| 143 | 143 |
| 144 } // namespace gfx | 144 } // namespace gl |
| 145 | 145 |
| 146 #endif // UI_GL_GL_IMPLEMENTATION_H_ | 146 #endif // UI_GL_GL_IMPLEMENTATION_H_ |
| OLD | NEW |