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

Unified Diff: content/common/gpu/client/gl_helper.h

Issue 1427543002: Modified old wait sync point functions to also accept new sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format Created 5 years, 1 month 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 | « content/common/frame_param_macros.h ('k') | content/common/gpu/client/gl_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/client/gl_helper.h
diff --git a/content/common/gpu/client/gl_helper.h b/content/common/gpu/client/gl_helper.h
index 26ec2174a3a8f83472ede59670b25d41de80817d..828097d6f5ebc2a7eb622ac06d809874c67215db 100644
--- a/content/common/gpu/client/gl_helper.h
+++ b/content/common/gpu/client/gl_helper.h
@@ -188,7 +188,7 @@ class CONTENT_EXPORT GLHelper {
// assumed to be GL_TEXTURE_2D.
void CropScaleReadbackAndCleanMailbox(
const gpu::Mailbox& src_mailbox,
- uint32 sync_point,
+ const gpu::SyncToken& sync_token,
const gfx::Size& src_size,
const gfx::Rect& src_subrect,
const gfx::Size& dst_size,
@@ -246,8 +246,9 @@ class CONTENT_EXPORT GLHelper {
// Insert a sync point into the GL command buffer.
uint32 InsertSyncPoint();
- // Wait for the sync point before executing further GL commands.
- void WaitSyncPoint(uint32 sync_point);
+
+ // Wait for the sync token before executing further GL commands.
+ void WaitSyncToken(const gpu::SyncToken& sync_token);
// Creates a mailbox holder that is attached to the given texture id, with a
// sync point to wait on before using the mailbox. Returns a holder with an
@@ -258,7 +259,7 @@ class CONTENT_EXPORT GLHelper {
// Creates a texture and consumes a mailbox into it. Returns 0 on failure.
// Note the mailbox is assumed to be GL_TEXTURE_2D.
GLuint ConsumeMailboxToTexture(const gpu::Mailbox& mailbox,
- uint32 sync_point);
+ const gpu::SyncToken& sync_token);
// Resizes the texture's size to |size|.
void ResizeTexture(GLuint texture, const gfx::Size& size);
@@ -369,7 +370,7 @@ class CONTENT_EXPORT ReadbackYUVInterface {
// the call to CreateReadbackPipelineYUV() must be fully contained within
// |target->visible_rect()|.
virtual void ReadbackYUV(const gpu::Mailbox& mailbox,
- uint32 sync_point,
+ const gpu::SyncToken& sync_token,
const scoped_refptr<media::VideoFrame>& target,
const gfx::Point& paste_location,
const base::Callback<void(bool)>& callback) = 0;
« no previous file with comments | « content/common/frame_param_macros.h ('k') | content/common/gpu/client/gl_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698