summaryrefslogtreecommitdiffstats
path: root/app/gfx/gl/gl_context_osmesa.cc
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-10 18:02:02 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-10 18:02:02 +0000
commit5259ead872da61f51c2e528755c140b5661553cb (patch)
tree595121dd45f7ebbcd04fa79e2c888a8fa9d82e7c /app/gfx/gl/gl_context_osmesa.cc
parent6049ef9eb7322b0051b8358b48f5a665ef022331 (diff)
downloadchromium_src-5259ead872da61f51c2e528755c140b5661553cb.zip
chromium_src-5259ead872da61f51c2e528755c140b5661553cb.tar.gz
chromium_src-5259ead872da61f51c2e528755c140b5661553cb.tar.bz2
GPU process reports context lost when SwapBuffers fails.
This is to give the renderer or plugin process an opportunity to recover. TEST=try BUG=none Review URL: http://codereview.chromium.org/3305028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59115 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/gfx/gl/gl_context_osmesa.cc')
-rw-r--r--app/gfx/gl/gl_context_osmesa.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/gfx/gl/gl_context_osmesa.cc b/app/gfx/gl/gl_context_osmesa.cc
index 28eb170..9b73195 100644
--- a/app/gfx/gl/gl_context_osmesa.cc
+++ b/app/gfx/gl/gl_context_osmesa.cc
@@ -80,8 +80,9 @@ bool OSMesaGLContext::IsOffscreen() {
return true;
}
-void OSMesaGLContext::SwapBuffers() {
+bool OSMesaGLContext::SwapBuffers() {
NOTREACHED() << "Should not call SwapBuffers on an OSMesaGLContext.";
+ return false;
}
gfx::Size OSMesaGLContext::GetSize() {