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

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

Issue 1154153003: Relanding 1143663007: VideoFrame: Separate Pixel Format from Storage Type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NV12 support in CrOS Created 5 years, 7 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/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 1bcfca04d383e6175f7a8c2c5d45c3417c0e7ab1..75bb8943aef5819ba665f9d6faeff39d4dd17bfd 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -660,9 +660,9 @@ bool WebMediaPlayerAndroid::copyVideoTextureToPlatformTexture(
}
if (!video_frame.get() ||
- video_frame->format() != media::VideoFrame::NATIVE_TEXTURE)
+ video_frame->storage_type() != media::VideoFrame::STORAGE_TEXTURE)
return false;
- DCHECK_EQ(1u, media::VideoFrame::NumTextures(video_frame->texture_format()));
+ DCHECK_EQ(1u, media::VideoFrame::NumPlanes(video_frame->format()));
const gpu::MailboxHolder& mailbox_holder = video_frame->mailbox_holder(0);
DCHECK((!is_remote_ &&
mailbox_holder.texture_target == GL_TEXTURE_EXTERNAL_OES) ||
« no previous file with comments | « content/common/gpu/media/gpu_video_encode_accelerator.cc ('k') | content/renderer/media/rtc_video_encoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698