diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-19 00:03:51 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-19 00:03:51 +0000 |
commit | 5ab44efdb1f72aef69827ccf29ceab540f0a089c (patch) | |
tree | cb75c715bcfaa0d172751bfc4329fd021504dad2 /gpu/ipc | |
parent | 26af27ce9821548ca25c5c52437dc2a6121fcc4a (diff) | |
download | chromium_src-5ab44efdb1f72aef69827ccf29ceab540f0a089c.zip chromium_src-5ab44efdb1f72aef69827ccf29ceab540f0a089c.tar.gz chromium_src-5ab44efdb1f72aef69827ccf29ceab540f0a089c.tar.bz2 |
gpu: add SignalSyncPoint to complement WaitSyncPoint
BUG=112299
TEST=None
Review URL: https://chromiumcodereview.appspot.com/10541185
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142869 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/ipc')
-rw-r--r-- | gpu/ipc/command_buffer_proxy.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gpu/ipc/command_buffer_proxy.h b/gpu/ipc/command_buffer_proxy.h index d4412f0..af72db7 100644 --- a/gpu/ipc/command_buffer_proxy.h +++ b/gpu/ipc/command_buffer_proxy.h @@ -48,6 +48,11 @@ class GPU_EXPORT CommandBufferProxy : public gpu::CommandBuffer { // it, or gets destroyed. virtual void WaitSyncPoint(uint32) = 0; + // Makes this command buffer invoke a task when a sync point is reached, or + // the command buffer that inserted that sync point is destroyed. + virtual bool SignalSyncPoint(uint32 sync_point, + const base::Closure& callback) = 0; + // Register a callback to invoke whenever we recieve a new memory allocation. virtual void SetMemoryAllocationChangedCallback( const base::Callback<void(const GpuMemoryAllocationForRenderer&)>& |