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 gl { | 17 namespace gl { |
18 | 18 |
19 class GLContext; | |
20 | |
21 // The GL implementation currently in use. | 19 // The GL implementation currently in use. |
22 enum GLImplementation { | 20 enum GLImplementation { |
23 kGLImplementationNone, | 21 kGLImplementationNone, |
24 kGLImplementationDesktopGL, | 22 kGLImplementationDesktopGL, |
25 kGLImplementationDesktopGLCoreProfile, | 23 kGLImplementationDesktopGLCoreProfile, |
26 kGLImplementationOSMesaGL, | 24 kGLImplementationOSMesaGL, |
27 kGLImplementationAppleGL, | 25 kGLImplementationAppleGL, |
28 kGLImplementationEGLGLES2, | 26 kGLImplementationEGLGLES2, |
29 kGLImplementationMockGL | 27 kGLImplementationMockGL |
30 }; | 28 }; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 | 116 |
119 // Helpers to load a library and log error on failure. | 117 // Helpers to load a library and log error on failure. |
120 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( | 118 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( |
121 const base::FilePath::CharType* filename); | 119 const base::FilePath::CharType* filename); |
122 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( | 120 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( |
123 const base::FilePath& filename); | 121 const base::FilePath& filename); |
124 | 122 |
125 } // namespace gl | 123 } // namespace gl |
126 | 124 |
127 #endif // UI_GL_GL_IMPLEMENTATION_H_ | 125 #endif // UI_GL_GL_IMPLEMENTATION_H_ |
OLD | NEW |