summaryrefslogtreecommitdiffstats
path: root/ui/gl/gl_fence.cc
diff options
context:
space:
mode:
authorkbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 04:59:30 +0000
committerkbr@chromium.org <kbr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 04:59:30 +0000
commit706b69f5a4bdaf9a4204117a8bb9d3d61f7a4475 (patch)
treeb12f93344422fdee94772c06065f5accf42bdbae /ui/gl/gl_fence.cc
parentbb0bdeb6cd05396316d1a026481e86997253f762 (diff)
downloadchromium_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_fence.cc')
-rw-r--r--ui/gl/gl_fence.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/gl/gl_fence.cc b/ui/gl/gl_fence.cc
index 82cdf30..0f7610c 100644
--- a/ui/gl/gl_fence.cc
+++ b/ui/gl/gl_fence.cc
@@ -93,12 +93,12 @@ GLFence* GLFence::Create() {
// static
bool GLFence::IsContextLost() {
- if (!gfx::g_GL_ARB_robustness)
+ if (!gfx::g_GL_ARB_robustness && !gfx::g_GL_EXT_robustness)
return false;
if (!gfx::GLContext::GetCurrent() ||
!gfx::GLContext::GetCurrent()->
- WasAllocatedUsingARBRobustness())
+ WasAllocatedUsingRobustnessExtension())
return false;
GLenum status = glGetGraphicsResetStatusARB();