diff options
author | kbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-27 04:59:30 +0000 |
---|---|---|
committer | kbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-27 04:59:30 +0000 |
commit | 706b69f5a4bdaf9a4204117a8bb9d3d61f7a4475 (patch) | |
tree | b12f93344422fdee94772c06065f5accf42bdbae /ui/gl/gl_surface_egl.h | |
parent | bb0bdeb6cd05396316d1a026481e86997253f762 (diff) | |
download | chromium_src-706b69f5a4bdaf9a4204117a8bb9d3d61f7a4475.zip chromium_src-706b69f5a4bdaf9a4204117a8bb9d3d61f7a4475.tar.gz chromium_src-706b69f5a4bdaf9a4204117a8bb9d3d61f7a4475.tar.bz2 |
Use EXT_robustness where available on GLES2 platforms to detect and respond to resets of the graphics card.
BUG=138162
TEST=ran https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/conformance-suites/1.0.1/extra/slow-shader-example.html on Windows with ANGLE and verified that new code path was taken
Review URL: https://chromiumcodereview.appspot.com/10822029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl/gl_surface_egl.h')
-rw-r--r-- | ui/gl/gl_surface_egl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h index 399db43..85ca98c 100644 --- a/ui/gl/gl_surface_egl.h +++ b/ui/gl/gl_surface_egl.h @@ -41,6 +41,13 @@ class GL_EXPORT GLSurfaceEGL : public GLSurface { static EGLDisplay GetSoftwareDisplay(); static EGLNativeDisplayType GetNativeDisplay(); + // These aren't particularly tied to surfaces, but since we already + // have the static InitializeOneOff here, it's easiest to reuse its + // initialization guards. + static const char* GetEGLExtensions(); + static bool HasEGLExtension(const char* name); + static bool IsCreateContextRobustnessSupported(); + protected: virtual ~GLSurfaceEGL(); |