| 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> |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 private: | 72 private: |
| 73 bool initial_enabled_; | 73 bool initial_enabled_; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 // Set the current GL implementation. | 76 // Set the current GL implementation. |
| 77 GL_EXPORT void SetGLImplementation(GLImplementation implementation); | 77 GL_EXPORT void SetGLImplementation(GLImplementation implementation); |
| 78 | 78 |
| 79 // Get the current GL implementation. | 79 // Get the current GL implementation. |
| 80 GL_EXPORT GLImplementation GetGLImplementation(); | 80 GL_EXPORT GLImplementation GetGLImplementation(); |
| 81 | 81 |
| 82 // Get the software GL implementation for the current platform. |
| 83 GL_EXPORT GLImplementation GetSoftwareGLImplementation(); |
| 84 |
| 82 // Does the underlying GL support all features from Desktop GL 2.0 that were | 85 // Does the underlying GL support all features from Desktop GL 2.0 that were |
| 83 // removed from the ES 2.0 spec without requiring specific extension strings. | 86 // removed from the ES 2.0 spec without requiring specific extension strings. |
| 84 GL_EXPORT bool HasDesktopGLFeatures(); | 87 GL_EXPORT bool HasDesktopGLFeatures(); |
| 85 | 88 |
| 86 // Get the GL implementation with a given name. | 89 // Get the GL implementation with a given name. |
| 87 GL_EXPORT GLImplementation GetNamedGLImplementation(const std::string& name); | 90 GL_EXPORT GLImplementation GetNamedGLImplementation(const std::string& name); |
| 88 | 91 |
| 89 // Get the name of a GL implementation. | 92 // Get the name of a GL implementation. |
| 90 GL_EXPORT const char* GetGLImplementationName(GLImplementation implementation); | 93 GL_EXPORT const char* GetGLImplementationName(GLImplementation implementation); |
| 91 | 94 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 130 |
| 128 // Helpers to load a library and log error on failure. | 131 // Helpers to load a library and log error on failure. |
| 129 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( | 132 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( |
| 130 const base::FilePath::CharType* filename); | 133 const base::FilePath::CharType* filename); |
| 131 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( | 134 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( |
| 132 const base::FilePath& filename); | 135 const base::FilePath& filename); |
| 133 | 136 |
| 134 } // namespace gl | 137 } // namespace gl |
| 135 | 138 |
| 136 #endif // UI_GL_GL_IMPLEMENTATION_H_ | 139 #endif // UI_GL_GL_IMPLEMENTATION_H_ |
| OLD | NEW |