diff options
Diffstat (limited to 'ui/gfx')
-rw-r--r-- | ui/gfx/gl/gl_implementation.cc | 5 | ||||
-rw-r--r-- | ui/gfx/gl/gl_implementation.h | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ui/gfx/gl/gl_implementation.cc b/ui/gfx/gl/gl_implementation.cc index 21788c0..ae4b2d6 100644 --- a/ui/gfx/gl/gl_implementation.cc +++ b/ui/gfx/gl/gl_implementation.cc @@ -106,6 +106,11 @@ GLImplementation GetGLImplementation() { return g_gl_implementation; } +bool HasDesktopGLFeatures() { + return kGLImplementationDesktopGL == g_gl_implementation || + kGLImplementationOSMesaGL == g_gl_implementation; +} + void AddGLNativeLibrary(base::NativeLibrary library) { DCHECK(library); diff --git a/ui/gfx/gl/gl_implementation.h b/ui/gfx/gl/gl_implementation.h index aab0bdf..9024ca1 100644 --- a/ui/gfx/gl/gl_implementation.h +++ b/ui/gfx/gl/gl_implementation.h @@ -42,6 +42,10 @@ void SetGLImplementation(GLImplementation implementation); // Get the current GL implementation. GL_EXPORT GLImplementation GetGLImplementation(); +// Does the underlying GL support all features from Desktop GL 2.0 that were +// removed from the ES 2.0 spec without requiring specific extension strings. +GL_EXPORT bool HasDesktopGLFeatures(); + // Get the GL implementation with a given name. GLImplementation GetNamedGLImplementation(const std::wstring& name); |