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

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: 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: content/browser/compositor/owned_mailbox.cc
diff --git a/content/browser/compositor/owned_mailbox.cc b/content/browser/compositor/owned_mailbox.cc
index 9c7b37861f4d59db80730bdd9432bec3f12fbed7..0de86e0e02c6c438ad01e4dfa1cf11be2b4a99ce 100644
--- a/content/browser/compositor/owned_mailbox.cc
+++ b/content/browser/compositor/owned_mailbox.cc
@@ -22,14 +22,18 @@ OwnedMailbox::~OwnedMailbox() {
Destroy();
}
-void OwnedMailbox::UpdateSyncPoint(uint32 sync_point) {
- if (sync_point)
+void OwnedMailbox::UpdateSyncPoint(uint32 sync_point,
+ const gpu::SyncToken& sync_token) {
+ if (sync_point || sync_token.HasData()) {
mailbox_holder_.sync_point = sync_point;
+ mailbox_holder_.sync_token = sync_token;
+ }
}
void OwnedMailbox::Destroy() {
ImageTransportFactory::GetInstance()->RemoveObserver(this);
- gl_helper_->WaitSyncPoint(mailbox_holder_.sync_point);
+ gl_helper_->WaitSyncPoint(mailbox_holder_.sync_point,
+ mailbox_holder_.sync_token);
gl_helper_->DeleteTexture(texture_id_);
texture_id_ = 0;
mailbox_holder_ = gpu::MailboxHolder();

Powered by Google App Engine
This is Rietveld 408576698