Converted Ppapi post swap buffer sync point to use sync tokens.
This CL removes the sync point inserted directly from the command
buffer after swap buffers and just uses GL to insert a fence sync
after each swap buffer instead.
BUG=514815
Review URL: https://codereview.chromium.org/1586883002
Cr-Commit-Position: refs/heads/master@{#369575}
diff --git a/ppapi/proxy/ppb_graphics_3d_proxy.h b/ppapi/proxy/ppb_graphics_3d_proxy.h
index 98acb58..a30fd6c3 100644
--- a/ppapi/proxy/ppb_graphics_3d_proxy.h
+++ b/ppapi/proxy/ppb_graphics_3d_proxy.h
@@ -62,7 +62,7 @@
// PPB_Graphics3D_Shared overrides.
gpu::CommandBuffer* GetCommandBuffer() override;
gpu::GpuControl* GetGpuControl() override;
- int32_t DoSwapBuffers() override;
+ int32_t DoSwapBuffers(const gpu::SyncToken& sync_token) override;
scoped_ptr<PpapiCommandBufferProxy> command_buffer_;
@@ -110,7 +110,8 @@
int32_t* id,
ppapi::proxy::SerializedHandle* transfer_buffer);
void OnMsgDestroyTransferBuffer(const HostResource& context, int32_t id);
- void OnMsgSwapBuffers(const HostResource& context);
+ void OnMsgSwapBuffers(const HostResource& context,
+ const gpu::SyncToken& sync_token);
void OnMsgInsertSyncPoint(const HostResource& context, uint32_t* sync_point);
void OnMsgInsertFutureSyncPoint(const HostResource& context,
uint32_t* sync_point);