diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-25 05:08:38 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-25 05:08:38 +0000 |
commit | a597c62bc935ff9edf85406036aefcb97a67afc2 (patch) | |
tree | d4b5ef8c1fef3eec2de802cdec4beffd0e3a0199 /ppapi/proxy/ppapi_command_buffer_proxy.h | |
parent | 79a87b7ec1cb84b88b6e034cd7d4acac3b57a1ee (diff) | |
download | chromium_src-a597c62bc935ff9edf85406036aefcb97a67afc2.zip chromium_src-a597c62bc935ff9edf85406036aefcb97a67afc2.tar.gz chromium_src-a597c62bc935ff9edf85406036aefcb97a67afc2.tar.bz2 |
Add CommandBuffer::GetLastToken
GetLastToken is potentially more up to date then GetLastState().token
but is also potentially slower. Functions that need to know the last token
can call GetLastToken. Functions that need to know error/get will still
call GetLastState
BUG=none
Review URL: https://chromiumcodereview.appspot.com/12040090
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@178763 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppapi_command_buffer_proxy.h')
-rw-r--r-- | ppapi/proxy/ppapi_command_buffer_proxy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ppapi/proxy/ppapi_command_buffer_proxy.h b/ppapi/proxy/ppapi_command_buffer_proxy.h index d1aac55..365203d 100644 --- a/ppapi/proxy/ppapi_command_buffer_proxy.h +++ b/ppapi/proxy/ppapi_command_buffer_proxy.h @@ -40,6 +40,7 @@ class PPAPI_PROXY_EXPORT PpapiCommandBufferProxy : public CommandBufferProxy { virtual bool Initialize(); virtual State GetState(); virtual State GetLastState(); + virtual int32 GetLastToken(); virtual void Flush(int32 put_offset); virtual State FlushSync(int32 put_offset, int32 last_known_get); virtual void SetGetBuffer(int32 transfer_buffer_id); |