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

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: Addressed review feedback. Rebuilt and re-tested. 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
« no previous file with comments | « ui/gl/gl_context_glx.cc ('k') | ui/gl/gl_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_fence.cc
diff --git a/ui/gl/gl_fence.cc b/ui/gl/gl_fence.cc
index 82cdf30596969a8ddf25c81c96febbab30635971..0f7610c8a3c027a2b403984e1076f0d22a4cba68 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();
« no previous file with comments | « ui/gl/gl_context_glx.cc ('k') | ui/gl/gl_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698