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

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

Issue 7980034: Make OSMesa GL implementation advertise supported functionality as ES2 extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | ui/gfx/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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_GFX_GL_GL_IMPLEMENTATION_H_ 5 #ifndef UI_GFX_GL_GL_IMPLEMENTATION_H_
6 #define UI_GFX_GL_GL_IMPLEMENTATION_H_ 6 #define UI_GFX_GL_GL_IMPLEMENTATION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 24 matching lines...) Expand all
35 35
36 // Initialize Debug logging wrappers for GL bindings. 36 // Initialize Debug logging wrappers for GL bindings.
37 void InitializeDebugGLBindings(); 37 void InitializeDebugGLBindings();
38 38
39 // Set the current GL implementation. 39 // Set the current GL implementation.
40 void SetGLImplementation(GLImplementation implementation); 40 void SetGLImplementation(GLImplementation implementation);
41 41
42 // Get the current GL implementation. 42 // Get the current GL implementation.
43 GL_EXPORT GLImplementation GetGLImplementation(); 43 GL_EXPORT GLImplementation GetGLImplementation();
44 44
45 // Does the underlying GL support all features from Desktop GL 2.0 that were
46 // removed from the ES 2.0 spec without requiring specific extension strings.
47 GL_EXPORT bool HasDesktopGLFeatures();
48
45 // Get the GL implementation with a given name. 49 // Get the GL implementation with a given name.
46 GLImplementation GetNamedGLImplementation(const std::wstring& name); 50 GLImplementation GetNamedGLImplementation(const std::wstring& name);
47 51
48 // Get the name of a GL implementation. 52 // Get the name of a GL implementation.
49 const char* GetGLImplementationName(GLImplementation implementation); 53 const char* GetGLImplementationName(GLImplementation implementation);
50 54
51 // Initialize the preferred GL binding from the given list. The preferred GL 55 // Initialize the preferred GL binding from the given list. The preferred GL
52 // bindings depend on command line switches passed by the user and which GL 56 // bindings depend on command line switches passed by the user and which GL
53 // implementation is the default on a given platform. 57 // implementation is the default on a given platform.
54 bool InitializeRequestedGLBindings( 58 bool InitializeRequestedGLBindings(
55 const GLImplementation* allowed_implementations_begin, 59 const GLImplementation* allowed_implementations_begin,
56 const GLImplementation* allowed_implementations_end, 60 const GLImplementation* allowed_implementations_end,
57 GLImplementation default_implementation); 61 GLImplementation default_implementation);
58 62
59 // Add a native library to those searched for GL entry points. 63 // Add a native library to those searched for GL entry points.
60 void AddGLNativeLibrary(base::NativeLibrary library); 64 void AddGLNativeLibrary(base::NativeLibrary library);
61 65
62 // Set an additional function that will be called to find GL entry points. 66 // Set an additional function that will be called to find GL entry points.
63 void SetGLGetProcAddressProc(GLGetProcAddressProc proc); 67 void SetGLGetProcAddressProc(GLGetProcAddressProc proc);
64 68
65 // Find an entry point in the current GL implementation. 69 // Find an entry point in the current GL implementation.
66 void* GetGLProcAddress(const char* name); 70 void* GetGLProcAddress(const char* name);
67 71
68 } // namespace gfx 72 } // namespace gfx
69 73
70 #endif // UI_GFX_GL_GL_IMPLEMENTATION_H_ 74 #endif // UI_GFX_GL_GL_IMPLEMENTATION_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | ui/gfx/gl/gl_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698