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

Unified Diff: ppapi/shared_impl/ppb_graphics_3d_shared.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: 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
Index: ppapi/shared_impl/ppb_graphics_3d_shared.h
diff --git a/ppapi/shared_impl/ppb_graphics_3d_shared.h b/ppapi/shared_impl/ppb_graphics_3d_shared.h
index 87ee9d6cb2a7c0355d2b914dcb6d7c30a0a136c9..3ee595eb0e248e4f0dbd4c7fc1efff93a9c76513 100644
--- a/ppapi/shared_impl/ppb_graphics_3d_shared.h
+++ b/ppapi/shared_impl/ppb_graphics_3d_shared.h
@@ -40,7 +40,8 @@ class PPAPI_SHARED_EXPORT PPB_Graphics3D_Shared
int32_t SetAttribs(const int32_t attrib_list[]) override;
int32_t GetError() override;
int32_t ResizeBuffers(int32_t width, int32_t height) override;
- int32_t SwapBuffers(scoped_refptr<TrackedCallback> callback) override;
+ int32_t SwapBuffers(scoped_refptr<TrackedCallback> callback,
+ const gpu::SyncToken& sync_token) override;
int32_t GetAttribMaxValue(int32_t attribute, int32_t* value) override;
void* MapTexSubImage2DCHROMIUM(GLenum target,
@@ -67,7 +68,7 @@ class PPAPI_SHARED_EXPORT PPB_Graphics3D_Shared
virtual gpu::CommandBuffer* GetCommandBuffer() = 0;
virtual gpu::GpuControl* GetGpuControl() = 0;
- virtual int32_t DoSwapBuffers() = 0;
+ virtual int32_t DoSwapBuffers(const gpu::SyncToken& sync_token) = 0;
bool HasPendingSwap() const;
bool CreateGLES2Impl(int32_t command_buffer_size,

Powered by Google App Engine
This is Rietveld 408576698