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

Unified Diff: cc/resources/texture_mailbox.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: Fix mock gpu video accelerator factory Created 5 years, 2 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: cc/resources/texture_mailbox.h
diff --git a/cc/resources/texture_mailbox.h b/cc/resources/texture_mailbox.h
index 9fc0fb841d6d2f6be03096307c030c8ad0d707a8..470f94e1222a89e43a21e6a6ba00c9037fabaf5a 100644
--- a/cc/resources/texture_mailbox.h
+++ b/cc/resources/texture_mailbox.h
@@ -21,10 +21,14 @@ class CC_EXPORT TextureMailbox {
public:
TextureMailbox();
explicit TextureMailbox(const gpu::MailboxHolder& mailbox_holder);
- TextureMailbox(const gpu::Mailbox& mailbox, uint32 target, uint32 sync_point);
TextureMailbox(const gpu::Mailbox& mailbox,
uint32 target,
uint32 sync_point,
+ const gpu::SyncToken& sync_token);
+ TextureMailbox(const gpu::Mailbox& mailbox,
+ uint32 target,
+ uint32 sync_point,
+ const gpu::SyncToken& sync_token,
const gfx::Size& size_in_pixels,
bool is_overlay_candidate);
TextureMailbox(SharedBitmap* shared_bitmap, const gfx::Size& size_in_pixels);
@@ -41,8 +45,12 @@ class CC_EXPORT TextureMailbox {
const int8* name() const { return mailbox().name; }
uint32 target() const { return mailbox_holder_.texture_target; }
uint32 sync_point() const { return mailbox_holder_.sync_point; }
- void set_sync_point(int32 sync_point) {
+ const gpu::SyncToken& sync_token() const {
+ return mailbox_holder_.sync_token;
+ }
+ void set_sync_point(int32 sync_point, const gpu::SyncToken& sync_token) {
mailbox_holder_.sync_point = sync_point;
+ mailbox_holder_.sync_token = sync_token;
}
bool is_overlay_candidate() const { return is_overlay_candidate_; }

Powered by Google App Engine
This is Rietveld 408576698