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

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: 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 | « cc/resources/single_release_callback_impl.cc ('k') | cc/resources/texture_mailbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/texture_mailbox.h
diff --git a/cc/resources/texture_mailbox.h b/cc/resources/texture_mailbox.h
index 9fc0fb841d6d2f6be03096307c030c8ad0d707a8..01cc660c0b96e031ef83d2ea29da2b89f9ef1d4c 100644
--- a/cc/resources/texture_mailbox.h
+++ b/cc/resources/texture_mailbox.h
@@ -21,10 +21,12 @@ 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,
+ const gpu::SyncToken& sync_token,
+ uint32 target);
+ TextureMailbox(const gpu::Mailbox& mailbox,
+ const gpu::SyncToken& sync_token,
uint32 target,
- uint32 sync_point,
const gfx::Size& size_in_pixels,
bool is_overlay_candidate);
TextureMailbox(SharedBitmap* shared_bitmap, const gfx::Size& size_in_pixels);
@@ -40,9 +42,11 @@ class CC_EXPORT TextureMailbox {
const gpu::Mailbox& mailbox() const { return mailbox_holder_.mailbox; }
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) {
- mailbox_holder_.sync_point = sync_point;
+ const gpu::SyncToken& sync_token() const {
+ return mailbox_holder_.sync_token;
+ }
+ void set_sync_token(const gpu::SyncToken& sync_token) {
+ mailbox_holder_.sync_token = sync_token;
}
bool is_overlay_candidate() const { return is_overlay_candidate_; }
« no previous file with comments | « cc/resources/single_release_callback_impl.cc ('k') | cc/resources/texture_mailbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698