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

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

Issue 2690113010: Abstract OSMesa from the Layout tests (Closed)
Patch Set: Renamed "Renderer" to "GL" Created 3 years, 10 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 | « services/ui/ws/window_server_service_test_base.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 <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
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
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_
OLDNEW
« no previous file with comments | « services/ui/ws/window_server_service_test_base.cc ('k') | ui/gl/gl_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698