Index: content/renderer/media/android/webmediaplayer_android.cc |
diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc |
index 3679178aa734665867750888714ab653f7a2d055..b3a67926cc9961b7b9d175860ac0272f00f77c1c 100644 |
--- a/content/renderer/media/android/webmediaplayer_android.cc |
+++ b/content/renderer/media/android/webmediaplayer_android.cc |
@@ -1418,14 +1418,14 @@ void WebMediaPlayerAndroid::SetDecryptorReadyCB( |
} |
void WebMediaPlayerAndroid::DoReleaseRemotePlaybackTexture( |
- scoped_ptr<gpu::MailboxHolder> mailbox_holder) { |
+ const std::vector<uint32>& release_sync_points) { |
DCHECK(main_thread_checker_.CalledOnValidThread()); |
DCHECK(remote_playback_texture_id_); |
GLES2Interface* gl = stream_texture_factory_->ContextGL(); |
- if (mailbox_holder->sync_point) |
- gl->WaitSyncPointCHROMIUM(mailbox_holder->sync_point); |
+ for (size_t i = 0; i < release_sync_points.size(); i++) |
+ gl->WaitSyncPointCHROMIUM(release_sync_points[i]); |
gl->DeleteTextures(1, &remote_playback_texture_id_); |
remote_playback_texture_id_ = 0; |
} |