summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorkbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-04 21:16:47 +0000
committerkbr@google.com <kbr@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-04 21:16:47 +0000
commit2a47304dbad574ef333d7d261822250202127ff3 (patch)
treebc711bc5112c74a971677198c2647cd56da808d4 /content
parent56fc631312aa67dce4367d0773b2a2ae50a547da (diff)
downloadchromium_src-2a47304dbad574ef333d7d261822250202127ff3.zip
chromium_src-2a47304dbad574ef333d7d261822250202127ff3.tar.gz
chromium_src-2a47304dbad574ef333d7d261822250202127ff3.tar.bz2
Fix garbage seen on Mac OS X when toggling compositor and resizing
window by avoiding descheduling a given command buffer at a couple of inopportune times. The fact that these fixes work indicates that the overall IOSurface handling needs work, but these fixes get us back to a working state. BUG=80602 TEST=none Review URL: http://codereview.chromium.org/6927024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/common/gpu/gpu_command_buffer_stub.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index d78f4bc..39400c0 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -296,8 +296,6 @@ void GpuCommandBufferStub::SwapBuffersCallback() {
params.swap_buffers_count = scheduler_->swap_buffers_count();
gpu_channel_manager->Send(
new GpuHostMsg_AcceleratedSurfaceBuffersSwapped(params));
-
- scheduler_->SetScheduled(false);
}
void GpuCommandBufferStub::AcceleratedSurfaceBuffersSwapped(
@@ -305,7 +303,7 @@ void GpuCommandBufferStub::AcceleratedSurfaceBuffersSwapped(
scheduler_->set_acknowledged_swap_buffers_count(swap_buffers_count);
// Wake up the GpuScheduler to start doing work again.
- scheduler_->SetScheduled(true);
+ scheduler_->ScheduleProcessCommands();
}
#endif // defined(OS_MACOSX)