| 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();
|
|
|