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

Unified Diff: ui/gl/gl_fence.cc

Issue 10822029: Use EXT_robustness where available on GLES2 platforms to detect and respond to resets of the graphi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed GL interface mock. Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_fence.cc
diff --git a/ui/gl/gl_fence.cc b/ui/gl/gl_fence.cc
index 82cdf30596969a8ddf25c81c96febbab30635971..5e0fbe96acc4775e2b430745cafaeb07257b1407 100644
--- a/ui/gl/gl_fence.cc
+++ b/ui/gl/gl_fence.cc
@@ -93,15 +93,19 @@ 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();
+ GLenum status;
+ if (gfx::g_GL_ARB_robustness)
+ status = glGetGraphicsResetStatusARB();
apatrick_chromium 2012/07/26 22:12:38 Ditto.
+ else
+ status = glGetGraphicsResetStatusEXT();
return status != GL_NO_ERROR;
}
« ui/gl/generate_bindings.py ('K') | « ui/gl/gl_context_glx.cc ('k') | ui/gl/gl_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698