summaryrefslogtreecommitdiffstats
path: root/mojo/gles2
diff options
context:
space:
mode:
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-01 00:27:22 +0000
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-01 00:27:22 +0000
commit7035bc9d7c37346cb64a8273f97e9daa179a8aed (patch)
treed70d83b62e00f51e09ce22a3372e5c707d70baa1 /mojo/gles2
parent5940b0d0e6632e3f0933dee417c8fbaf9e3d0133 (diff)
downloadchromium_src-7035bc9d7c37346cb64a8273f97e9daa179a8aed.zip
chromium_src-7035bc9d7c37346cb64a8273f97e9daa179a8aed.tar.gz
chromium_src-7035bc9d7c37346cb64a8273f97e9daa179a8aed.tar.bz2
Add support for strong future sync points.
If InsertFutureSyncPoint() is used (this is only allowed from the browser process), the sync point will not be retired automatically but can be retired later manually with RetireSyncPoint. Any command buffer that waits on it before it's retired can wait indefinitely. BUG=365454 Review URL: https://codereview.chromium.org/284233008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280708 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/gles2')
-rw-r--r--mojo/gles2/command_buffer_client_impl.cc11
-rw-r--r--mojo/gles2/command_buffer_client_impl.h2
2 files changed, 13 insertions, 0 deletions
diff --git a/mojo/gles2/command_buffer_client_impl.cc b/mojo/gles2/command_buffer_client_impl.cc
index 78ebf13..19e21df 100644
--- a/mojo/gles2/command_buffer_client_impl.cc
+++ b/mojo/gles2/command_buffer_client_impl.cc
@@ -187,6 +187,17 @@ uint32 CommandBufferClientImpl::InsertSyncPoint() {
return 0;
}
+uint32 CommandBufferClientImpl::InsertFutureSyncPoint() {
+ // TODO(piman)
+ NOTIMPLEMENTED();
+ return 0;
+}
+
+void CommandBufferClientImpl::RetireSyncPoint(uint32 sync_point) {
+ // TODO(piman)
+ NOTIMPLEMENTED();
+}
+
void CommandBufferClientImpl::SignalSyncPoint(uint32 sync_point,
const base::Closure& callback) {
// TODO(piman)
diff --git a/mojo/gles2/command_buffer_client_impl.h b/mojo/gles2/command_buffer_client_impl.h
index 68312e0..642902d 100644
--- a/mojo/gles2/command_buffer_client_impl.h
+++ b/mojo/gles2/command_buffer_client_impl.h
@@ -66,6 +66,8 @@ class CommandBufferClientImpl : public CommandBufferClient,
int32* id) OVERRIDE;
virtual void DestroyGpuMemoryBuffer(int32 id) OVERRIDE;
virtual uint32 InsertSyncPoint() OVERRIDE;
+ virtual uint32 InsertFutureSyncPoint() OVERRIDE;
+ virtual void RetireSyncPoint(uint32 sync_point) OVERRIDE;
virtual void SignalSyncPoint(uint32 sync_point,
const base::Closure& callback) OVERRIDE;
virtual void SignalQuery(uint32 query,