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

Unified Diff: content/renderer/media/webmediaplayer_ms.cc

Issue 1153623002: media: SkCanvasVideoRenderer support for YUV native videoframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set the color format. Created 5 years, 6 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 | media/blink/skcanvas_video_renderer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/webmediaplayer_ms.cc
diff --git a/content/renderer/media/webmediaplayer_ms.cc b/content/renderer/media/webmediaplayer_ms.cc
index 7363e60689be4d4777f27872cf7b41d4cf720fec..e96b0bda79ab5f9a33f7bc6bbaa8fe1a626c6d47 100644
--- a/content/renderer/media/webmediaplayer_ms.cc
+++ b/content/renderer/media/webmediaplayer_ms.cc
@@ -429,7 +429,8 @@ bool WebMediaPlayerMS::copyVideoTextureToPlatformTexture(
}
if (!video_frame.get() ||
- video_frame->storage_type() != media::VideoFrame::STORAGE_TEXTURE) {
+ video_frame->storage_type() != media::VideoFrame::STORAGE_TEXTURE ||
+ media::VideoFrame::NumPlanes(video_frame->format()) != 1) {
return false;
}
@@ -438,7 +439,7 @@ bool WebMediaPlayerMS::copyVideoTextureToPlatformTexture(
gpu::gles2::GLES2Interface* gl =
static_cast<gpu_blink::WebGraphicsContext3DImpl*>(web_graphics_context)
->GetGLInterface();
- media::SkCanvasVideoRenderer::CopyVideoFrameTextureToGLTexture(
+ media::SkCanvasVideoRenderer::CopyVideoFrameSingleTextureToGLTexture(
gl, video_frame.get(), texture, internal_format, type, premultiply_alpha,
flip_y);
return true;
« no previous file with comments | « no previous file | media/blink/skcanvas_video_renderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698