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

Side by Side Diff: ui/gl/gl_context_glx.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, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gl/gl_context_glx.h ('k') | ui/gl/gl_fence.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 extern "C" { 5 extern "C" {
6 #include <X11/Xlib.h> 6 #include <X11/Xlib.h>
7 } 7 }
8 8
9 #include "ui/gl/gl_context_glx.h" 9 #include "ui/gl/gl_context_glx.h"
10 10
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 std::string GLContextGLX::GetExtensions() { 237 std::string GLContextGLX::GetExtensions() {
238 DCHECK(IsCurrent(NULL)); 238 DCHECK(IsCurrent(NULL));
239 const char* extensions = GLSurfaceGLX::GetGLXExtensions(); 239 const char* extensions = GLSurfaceGLX::GetGLXExtensions();
240 if (extensions) { 240 if (extensions) {
241 return GLContext::GetExtensions() + " " + extensions; 241 return GLContext::GetExtensions() + " " + extensions;
242 } 242 }
243 243
244 return GLContext::GetExtensions(); 244 return GLContext::GetExtensions();
245 } 245 }
246 246
247 bool GLContextGLX::WasAllocatedUsingARBRobustness() { 247 bool GLContextGLX::WasAllocatedUsingRobustnessExtension() {
248 return GLSurfaceGLX::IsCreateContextRobustnessSupported(); 248 return GLSurfaceGLX::IsCreateContextRobustnessSupported();
249 } 249 }
250 250
251 GLContextGLX::~GLContextGLX() { 251 GLContextGLX::~GLContextGLX() {
252 Destroy(); 252 Destroy();
253 } 253 }
254 254
255 } // namespace gfx 255 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_context_glx.h ('k') | ui/gl/gl_fence.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698