Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: ppapi/shared_impl/ppb_graphics_3d_shared.cc

Issue 1586883002: Converted Ppapi post swap buffer sync point to use sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed some .get() booleans Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/shared_impl/ppb_graphics_3d_shared.h ('k') | ppapi/thunk/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_graphics_3d_shared.cc
diff --git a/ppapi/shared_impl/ppb_graphics_3d_shared.cc b/ppapi/shared_impl/ppb_graphics_3d_shared.cc
index 98528e00b762a893d5c7e3f4e6833a0433520f88..82320d1f9b22af38169ba2b2d2b697198408a9f4 100644
--- a/ppapi/shared_impl/ppb_graphics_3d_shared.cc
+++ b/ppapi/shared_impl/ppb_graphics_3d_shared.cc
@@ -54,7 +54,8 @@ int32_t PPB_Graphics3D_Shared::ResizeBuffers(int32_t width, int32_t height) {
}
int32_t PPB_Graphics3D_Shared::SwapBuffers(
- scoped_refptr<TrackedCallback> callback) {
+ scoped_refptr<TrackedCallback> callback,
+ const gpu::SyncToken& sync_token) {
if (HasPendingSwap()) {
Log(PP_LOGLEVEL_ERROR,
"PPB_Graphics3D.SwapBuffers: Plugin attempted swap "
@@ -64,7 +65,7 @@ int32_t PPB_Graphics3D_Shared::SwapBuffers(
}
swap_callback_ = callback;
- return DoSwapBuffers();
+ return DoSwapBuffers(sync_token);
}
int32_t PPB_Graphics3D_Shared::GetAttribMaxValue(int32_t attribute,
« no previous file with comments | « ppapi/shared_impl/ppb_graphics_3d_shared.h ('k') | ppapi/thunk/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698