summaryrefslogtreecommitdiffstats
path: root/ppapi/proxy/ppapi_command_buffer_proxy.cc
diff options
context:
space:
mode:
authorpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-08 03:08:01 +0000
committerpiman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-08 03:08:01 +0000
commitb096d03b3a3c42789371afde33de83b8b9c2f131 (patch)
treef59685dff742251844f4a56f26dfe2f026d628ed /ppapi/proxy/ppapi_command_buffer_proxy.cc
parent26eee511db49e180162ce56f99dc330488140192 (diff)
downloadchromium_src-b096d03b3a3c42789371afde33de83b8b9c2f131.zip
chromium_src-b096d03b3a3c42789371afde33de83b8b9c2f131.tar.gz
chromium_src-b096d03b3a3c42789371afde33de83b8b9c2f131.tar.bz2
Move InsertSyncPoint to GLES2Interface
This is needed to allow Pepper to use mailboxes rather than parenting to integrate with the compositor. BUG=164095 Review URL: https://chromiumcodereview.appspot.com/12581004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186869 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppapi_command_buffer_proxy.cc')
-rw-r--r--ppapi/proxy/ppapi_command_buffer_proxy.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/ppapi/proxy/ppapi_command_buffer_proxy.cc b/ppapi/proxy/ppapi_command_buffer_proxy.cc
index dff891e..98c2353 100644
--- a/ppapi/proxy/ppapi_command_buffer_proxy.cc
+++ b/ppapi/proxy/ppapi_command_buffer_proxy.cc
@@ -226,6 +226,15 @@ void PpapiCommandBufferProxy::SetContextLostReason(
NOTREACHED();
}
+uint32 PpapiCommandBufferProxy::InsertSyncPoint() {
+ uint32 sync_point = 0;
+ if (last_state_.error == gpu::error::kNoError) {
+ Send(new PpapiHostMsg_PPBGraphics3D_InsertSyncPoint(
+ ppapi::API_ID_PPB_GRAPHICS_3D, resource_, &sync_point));
+ }
+ return sync_point;
+}
+
bool PpapiCommandBufferProxy::Send(IPC::Message* msg) {
DCHECK(last_state_.error == gpu::error::kNoError);