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

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

Issue 1542013005: Add a new driver bug workaround SANDBOX_START_EARLY Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 2 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 | « gpu/ipc/service/gpu_init.cc ('k') | ui/gl/gl_implementation.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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Does the underlying GL support all features from Desktop GL 2.0 that were 77 // Does the underlying GL support all features from Desktop GL 2.0 that were
78 // removed from the ES 2.0 spec without requiring specific extension strings. 78 // removed from the ES 2.0 spec without requiring specific extension strings.
79 GL_EXPORT bool HasDesktopGLFeatures(); 79 GL_EXPORT bool HasDesktopGLFeatures();
80 80
81 // Get the GL implementation with a given name. 81 // Get the GL implementation with a given name.
82 GL_EXPORT GLImplementation GetNamedGLImplementation(const std::string& name); 82 GL_EXPORT GLImplementation GetNamedGLImplementation(const std::string& name);
83 83
84 // Get the name of a GL implementation. 84 // Get the name of a GL implementation.
85 GL_EXPORT const char* GetGLImplementationName(GLImplementation implementation); 85 GL_EXPORT const char* GetGLImplementationName(GLImplementation implementation);
86 86
87 // Determine GL implementation to use depending on the combination of parameters
88 // present in the command line.
89 GL_EXPORT bool SelectGLImplementation(
90 const std::vector<GLImplementation>& allowed_impls,
91 GLImplementation* impl,
92 bool* fallback_to_osmesa);
93
87 // Add a native library to those searched for GL entry points. 94 // Add a native library to those searched for GL entry points.
88 GL_EXPORT void AddGLNativeLibrary(base::NativeLibrary library); 95 GL_EXPORT void AddGLNativeLibrary(base::NativeLibrary library);
89 96
90 // Unloads all native libraries. 97 // Unloads all native libraries.
91 GL_EXPORT void UnloadGLNativeLibraries(); 98 GL_EXPORT void UnloadGLNativeLibraries();
92 99
93 // Set an additional function that will be called to find GL entry points. 100 // Set an additional function that will be called to find GL entry points.
94 // Exported so that tests may set the function used in the mock implementation. 101 // Exported so that tests may set the function used in the mock implementation.
95 GL_EXPORT void SetGLGetProcAddressProc(GLGetProcAddressProc proc); 102 GL_EXPORT void SetGLGetProcAddressProc(GLGetProcAddressProc proc);
96 103
(...skipping 21 matching lines...) Expand all
118 125
119 // Helpers to load a library and log error on failure. 126 // Helpers to load a library and log error on failure.
120 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( 127 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError(
121 const base::FilePath::CharType* filename); 128 const base::FilePath::CharType* filename);
122 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError( 129 GL_EXPORT base::NativeLibrary LoadLibraryAndPrintError(
123 const base::FilePath& filename); 130 const base::FilePath& filename);
124 131
125 } // namespace gl 132 } // namespace gl
126 133
127 #endif // UI_GL_GL_IMPLEMENTATION_H_ 134 #endif // UI_GL_GL_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_init.cc ('k') | ui/gl/gl_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698