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

Unified Diff: content/renderer/media/android/webmediaplayer_android.cc

Issue 1598433003: Convert android web media player sync points to use sync tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase] Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d23206905839416e823191d6d39145988b97d5bc..c6f4aca7df68a78dfad3e96056e22144cf166d53 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -1196,8 +1196,12 @@ void WebMediaPlayerAndroid::ReallocateVideoFrame() {
GLuint texture_target = kGLTextureExternalOES;
GLuint texture_id_ref = gl->CreateAndConsumeTextureCHROMIUM(
texture_target, texture_mailbox_.name);
+ const GLuint64 fence_sync = gl->InsertFenceSyncCHROMIUM();
gl->Flush();
- gpu::SyncToken texture_mailbox_sync_token(gl->InsertSyncPointCHROMIUM());
+
+ gpu::SyncToken texture_mailbox_sync_token;
+ gl->GenUnverifiedSyncTokenCHROMIUM(fence_sync,
+ texture_mailbox_sync_token.GetData());
scoped_refptr<VideoFrame> new_frame = VideoFrame::WrapNativeTexture(
media::PIXEL_FORMAT_ARGB,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698