diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 01:17:00 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 01:17:00 +0000 |
commit | 22f320a27d8b7e45221fd92ce1964716a7277821 (patch) | |
tree | d11cd935d327658829a199d9e1c59a6aa7d3f73f /gpu/command_buffer/service/gpu_scheduler.cc | |
parent | c16ed34dad105cd5e8a1f0215f3650cf31507bc6 (diff) | |
download | chromium_src-22f320a27d8b7e45221fd92ce1964716a7277821.zip chromium_src-22f320a27d8b7e45221fd92ce1964716a7277821.tar.gz chromium_src-22f320a27d8b7e45221fd92ce1964716a7277821.tar.bz2 |
Added GPU process "echo" IPC message.
The echo message is essentially an async fence with event based notification. The client gets a notification when the GPU process has completed all the work up to the last flush.
I used it to replace the SwapBuffers / OnSwapBuffers synchronization and got rid of some of the callbacks in the lower layers of the stack.
The SwapBuffers callbacks in the GPU process are only needed on mac now and I will replace them with something more generic soon.
Review URL: http://codereview.chromium.org/7762013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/service/gpu_scheduler.cc')
-rw-r--r-- | gpu/command_buffer/service/gpu_scheduler.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gpu/command_buffer/service/gpu_scheduler.cc b/gpu/command_buffer/service/gpu_scheduler.cc index 6413cc1..c4505a5 100644 --- a/gpu/command_buffer/service/gpu_scheduler.cc +++ b/gpu/command_buffer/service/gpu_scheduler.cc @@ -233,14 +233,6 @@ void GpuScheduler::SetResizeCallback( decoder_->SetResizeCallback(callback); } -void GpuScheduler::SetSwapBuffersCallback( - Callback0::Type* callback) { - wrapped_swap_buffers_callback_.reset(callback); - decoder_->SetSwapBuffersCallback( - NewCallback(this, - &GpuScheduler::WillSwapBuffers)); -} - void GpuScheduler::SetCommandProcessedCallback( Callback0::Type* callback) { command_processed_callback_.reset(callback); |