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 /ppapi/proxy/ppb_graphics_3d_proxy.h | |
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 'ppapi/proxy/ppb_graphics_3d_proxy.h')
-rw-r--r-- | ppapi/proxy/ppb_graphics_3d_proxy.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.h b/ppapi/proxy/ppb_graphics_3d_proxy.h index e66405c..0a0a748 100644 --- a/ppapi/proxy/ppb_graphics_3d_proxy.h +++ b/ppapi/proxy/ppb_graphics_3d_proxy.h @@ -46,6 +46,8 @@ class PPAPI_PROXY_EXPORT Graphics3D : public PPB_Graphics3D_Shared { int32_t end) OVERRIDE; virtual uint32_t InsertSyncPoint() OVERRIDE; + virtual uint32_t InsertFutureSyncPoint() OVERRIDE; + virtual void RetireSyncPoint(uint32_t sync_point) OVERRIDE; private: // PPB_Graphics3D_Shared overrides. @@ -100,6 +102,9 @@ class PPB_Graphics3D_Proxy : public InterfaceProxy { int32 id); void OnMsgSwapBuffers(const HostResource& context); void OnMsgInsertSyncPoint(const HostResource& context, uint32* sync_point); + void OnMsgInsertFutureSyncPoint(const HostResource& context, + uint32* sync_point); + void OnMsgRetireSyncPoint(const HostResource& context, uint32 sync_point); // Renderer->plugin message handlers. void OnMsgSwapBuffersACK(const HostResource& context, int32_t pp_error); |