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 |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 GL_EXPORT void GetAllowedGLImplementations( | 40 GL_EXPORT void GetAllowedGLImplementations( |
41 std::vector<GLImplementation>* impls); | 41 std::vector<GLImplementation>* impls); |
42 | 42 |
43 #if defined(OS_WIN) | 43 #if defined(OS_WIN) |
44 typedef void* (WINAPI *GLGetProcAddressProc)(const char* name); | 44 typedef void* (WINAPI *GLGetProcAddressProc)(const char* name); |
45 #else | 45 #else |
46 typedef void* (*GLGetProcAddressProc)(const char* name); | 46 typedef void* (*GLGetProcAddressProc)(const char* name); |
47 #endif | 47 #endif |
48 | 48 |
49 // Initialize function bindings that depend on the context for a GL | |
50 // implementation. | |
51 GL_EXPORT bool InitializeDynamicGLBindings(GLImplementation implementation, | |
52 GLContext* context); | |
53 | |
54 // Initialize stub methods for drawing operations in the GL bindings. The | 49 // Initialize stub methods for drawing operations in the GL bindings. The |
55 // null draw bindings default to enabled, so that draw operations do nothing. | 50 // null draw bindings default to enabled, so that draw operations do nothing. |
56 GL_EXPORT void InitializeNullDrawGLBindings(); | 51 GL_EXPORT void InitializeNullDrawGLBindings(); |
57 | 52 |
58 // TODO(danakj): Remove this when all test suites are using null-draw. | 53 // TODO(danakj): Remove this when all test suites are using null-draw. |
59 GL_EXPORT bool HasInitializedNullDrawGLBindings(); | 54 GL_EXPORT bool HasInitializedNullDrawGLBindings(); |
60 | 55 |
61 // Filter a list of disabled_extensions from GL style space-separated | 56 // Filter a list of disabled_extensions from GL style space-separated |
62 // extension_list, returning a space separated list of filtered extensions, in | 57 // extension_list, returning a space separated list of filtered extensions, in |
63 // the same order as the input. | 58 // the same order as the input. |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 125 |
131 // Helpers to load a library and log error on failure. | 126 // Helpers to load a library and log error on failure. |
132 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( | 127 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( |
133 const base::FilePath::CharType* filename); | 128 const base::FilePath::CharType* filename); |
134 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( | 129 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( |
135 const base::FilePath& filename); | 130 const base::FilePath& filename); |
136 | 131 |
137 } // namespace gl | 132 } // namespace gl |
138 | 133 |
139 #endif // UI_GL_GL_IMPLEMENTATION_H_ | 134 #endif // UI_GL_GL_IMPLEMENTATION_H_ |
OLD | NEW |