| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/native_library.h" | 13 #include "base/native_library.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "ui/gl/gl_export.h" | 15 #include "ui/gl/gl_export.h" |
| 16 #include "ui/gl/gl_switches.h" | 16 #include "ui/gl/gl_switches.h" |
| 17 | 17 |
| 18 namespace gl { | 18 namespace gl { |
| 19 | 19 |
| 20 class GLApi; | 20 class GLApi; |
| 21 struct GLVersionInfo; | 21 struct GLVersionInfo; |
| 22 | 22 |
| 23 // The GL implementation currently in use. | 23 // The GL implementation currently in use. |
| 24 enum GLImplementation { | 24 enum GLImplementation { |
| 25 kGLImplementationNone, | 25 kGLImplementationNone, |
| 26 kGLImplementationDesktopGL, | 26 kGLImplementationDesktopGL, |
| 27 kGLImplementationDesktopGLCoreProfile, | 27 kGLImplementationDesktopGLCoreProfile, |
| 28 kGLImplementationOSMesaGL, | 28 kGLImplementationOSMesaGL, |
| 29 kGLImplementationSwiftShaderGL, |
| 29 kGLImplementationAppleGL, | 30 kGLImplementationAppleGL, |
| 30 kGLImplementationEGLGLES2, | 31 kGLImplementationEGLGLES2, |
| 31 kGLImplementationMockGL, | 32 kGLImplementationMockGL, |
| 32 kGLImplementationStubGL, | 33 kGLImplementationStubGL, |
| 33 }; | 34 }; |
| 34 | 35 |
| 35 struct GL_EXPORT GLWindowSystemBindingInfo { | 36 struct GL_EXPORT GLWindowSystemBindingInfo { |
| 36 GLWindowSystemBindingInfo(); | 37 GLWindowSystemBindingInfo(); |
| 37 std::string vendor; | 38 std::string vendor; |
| 38 std::string version; | 39 std::string version; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 | 127 |
| 127 // Helpers to load a library and log error on failure. | 128 // Helpers to load a library and log error on failure. |
| 128 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( | 129 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( |
| 129 const base::FilePath::CharType* filename); | 130 const base::FilePath::CharType* filename); |
| 130 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( | 131 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( |
| 131 const base::FilePath& filename); | 132 const base::FilePath& filename); |
| 132 | 133 |
| 133 } // namespace gl | 134 } // namespace gl |
| 134 | 135 |
| 135 #endif // UI_GL_GL_IMPLEMENTATION_H_ | 136 #endif // UI_GL_GL_IMPLEMENTATION_H_ |
| OLD | NEW |