summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-30 00:01:30 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-30 00:01:30 +0000
commita9327cf7e1017008b2349aa99c5dac2ea2a63e87 (patch)
treee900de91c50b965b2565a311ae40e58b07803a87 /gpu
parentce613ba0d5d3bc17cd55d582d4c3ad4667bee57e (diff)
downloadchromium_src-a9327cf7e1017008b2349aa99c5dac2ea2a63e87.zip
chromium_src-a9327cf7e1017008b2349aa99c5dac2ea2a63e87.tar.gz
chromium_src-a9327cf7e1017008b2349aa99c5dac2ea2a63e87.tar.bz2
Delete GPU channel on failure to reallocate backbuffer.
This will cause a lost context and the renderer process will attempt to recover. If it does not recover, it will fall back to software compositing. Currently SetBackbufferAllocation can only fail on Windows but we should detect failures on other platforms as well. This might potentially fix the referenced bug. BUG=170767 Review URL: https://chromiumcodereview.appspot.com/12090027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179471 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/command_buffer/service/gl_surface_mock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/gl_surface_mock.h b/gpu/command_buffer/service/gl_surface_mock.h
index 14ec4ce..372a9b3 100644
--- a/gpu/command_buffer/service/gl_surface_mock.h
+++ b/gpu/command_buffer/service/gl_surface_mock.h
@@ -25,7 +25,7 @@ class GLSurfaceMock : public gfx::GLSurface {
MOCK_METHOD0(GetHandle, void*());
MOCK_METHOD0(GetBackingFrameBufferObject, unsigned int());
MOCK_METHOD1(OnMakeCurrent, bool(gfx::GLContext* context));
- MOCK_METHOD1(SetBackbufferAllocation, void(bool allocated));
+ MOCK_METHOD1(SetBackbufferAllocation, bool(bool allocated));
MOCK_METHOD1(SetFrontbufferAllocation, void(bool allocated));
MOCK_METHOD0(GetShareHandle, void*());
MOCK_METHOD0(GetDisplay, void*());