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

Unified Diff: content/browser/compositor/owned_mailbox.cc

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/browser/compositor/owned_mailbox.h ('k') | content/browser/compositor/reflector_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/compositor/owned_mailbox.cc
diff --git a/content/browser/compositor/owned_mailbox.cc b/content/browser/compositor/owned_mailbox.cc
index 9c7b37861f4d59db80730bdd9432bec3f12fbed7..912d4d569b7f106dae3f2b2b73c5aab5ef6eaa1a 100644
--- a/content/browser/compositor/owned_mailbox.cc
+++ b/content/browser/compositor/owned_mailbox.cc
@@ -22,14 +22,14 @@ OwnedMailbox::~OwnedMailbox() {
Destroy();
}
-void OwnedMailbox::UpdateSyncPoint(uint32 sync_point) {
- if (sync_point)
- mailbox_holder_.sync_point = sync_point;
+void OwnedMailbox::UpdateSyncToken(const gpu::SyncToken& sync_token) {
+ if (sync_token.HasData())
+ mailbox_holder_.sync_token = sync_token;
}
void OwnedMailbox::Destroy() {
ImageTransportFactory::GetInstance()->RemoveObserver(this);
- gl_helper_->WaitSyncPoint(mailbox_holder_.sync_point);
+ gl_helper_->WaitSyncToken(mailbox_holder_.sync_token);
gl_helper_->DeleteTexture(texture_id_);
texture_id_ = 0;
mailbox_holder_ = gpu::MailboxHolder();
« no previous file with comments | « content/browser/compositor/owned_mailbox.h ('k') | content/browser/compositor/reflector_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698