diff options
author | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-01 00:27:22 +0000 |
---|---|---|
committer | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-01 00:27:22 +0000 |
commit | 7035bc9d7c37346cb64a8273f97e9daa179a8aed (patch) | |
tree | d70d83b62e00f51e09ce22a3372e5c707d70baa1 /mojo/examples/pepper_container_app | |
parent | 5940b0d0e6632e3f0933dee417c8fbaf9e3d0133 (diff) | |
download | chromium_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/examples/pepper_container_app')
-rw-r--r-- | mojo/examples/pepper_container_app/graphics_3d_resource.cc | 9 | ||||
-rw-r--r-- | mojo/examples/pepper_container_app/graphics_3d_resource.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mojo/examples/pepper_container_app/graphics_3d_resource.cc b/mojo/examples/pepper_container_app/graphics_3d_resource.cc index 2ad7dcd..506e747 100644 --- a/mojo/examples/pepper_container_app/graphics_3d_resource.cc +++ b/mojo/examples/pepper_container_app/graphics_3d_resource.cc @@ -137,6 +137,15 @@ uint32_t Graphics3DResource::InsertSyncPoint() { return 0; } +uint32_t Graphics3DResource::InsertFutureSyncPoint() { + NOTIMPLEMENTED(); + return 0; +} + +void Graphics3DResource::RetireSyncPoint(uint32_t sync_point) { + NOTIMPLEMENTED(); +} + Graphics3DResource::~Graphics3DResource() { MojoGLES2DestroyContext(context_); } diff --git a/mojo/examples/pepper_container_app/graphics_3d_resource.h b/mojo/examples/pepper_container_app/graphics_3d_resource.h index 5dba92c..e478151 100644 --- a/mojo/examples/pepper_container_app/graphics_3d_resource.h +++ b/mojo/examples/pepper_container_app/graphics_3d_resource.h @@ -54,6 +54,8 @@ class Graphics3DResource : public ppapi::Resource, GLenum access) OVERRIDE; virtual void UnmapTexSubImage2DCHROMIUM(const void* mem) OVERRIDE; virtual uint32_t InsertSyncPoint() OVERRIDE; + virtual uint32_t InsertFutureSyncPoint() OVERRIDE; + virtual void RetireSyncPoint(uint32_t sync_point) OVERRIDE; private: virtual ~Graphics3DResource(); |