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

Unified Diff: ppapi/thunk/ppb_graphics_3d_api.h

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/thunk/DEPS ('k') | ppapi/thunk/ppb_graphics_3d_thunk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_graphics_3d_api.h
diff --git a/ppapi/thunk/ppb_graphics_3d_api.h b/ppapi/thunk/ppb_graphics_3d_api.h
index 1d28ff340ad08a3ba3cd9e8d993623db2aee25cf..231c0acd44bac556dac95b8522057a8c4ef8e0ef 100644
--- a/ppapi/thunk/ppb_graphics_3d_api.h
+++ b/ppapi/thunk/ppb_graphics_3d_api.h
@@ -13,6 +13,10 @@
#include "ppapi/c/ppb_graphics_3d.h"
#include "ppapi/thunk/ppapi_thunk_export.h"
+namespace gpu {
+struct SyncToken;
+}
+
namespace ppapi {
class TrackedCallback;
@@ -28,7 +32,8 @@ class PPAPI_THUNK_EXPORT PPB_Graphics3D_API {
virtual int32_t SetAttribs(const int32_t attrib_list[]) = 0;
virtual int32_t GetError() = 0;
virtual int32_t ResizeBuffers(int32_t width, int32_t height) = 0;
- virtual int32_t SwapBuffers(scoped_refptr<TrackedCallback> callback) = 0;
+ virtual int32_t SwapBuffers(scoped_refptr<TrackedCallback> callback,
+ const gpu::SyncToken& sync_token) = 0;
virtual int32_t GetAttribMaxValue(int32_t attribute, int32_t* value) = 0;
// Graphics3DTrusted API.
« no previous file with comments | « ppapi/thunk/DEPS ('k') | ppapi/thunk/ppb_graphics_3d_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698