Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: ui/gl/gl_implementation.h

Issue 2129043003: Make dynamic mock bindings initialization consistent with other GL implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gl/gl_context_wgl.cc ('k') | ui/gl/gl_implementation_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/gl/gl_context_wgl.cc ('k') | ui/gl/gl_implementation_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698