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

Unified Diff: cc/layers/video_layer_impl.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
« no previous file with comments | « no previous file | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/video_layer_impl.cc
diff --git a/cc/layers/video_layer_impl.cc b/cc/layers/video_layer_impl.cc
index 759c79de26499667d1fa34762ad8117cb934c08f..754a2f25abb3248ee5e280003bf453f24c8c47b5 100644
--- a/cc/layers/video_layer_impl.cc
+++ b/cc/layers/video_layer_impl.cc
@@ -233,8 +233,8 @@ void VideoLayerImpl::AppendQuads(RenderPass* render_pass,
const gfx::Size ya_tex_size = coded_size;
gfx::Size uv_tex_size;
- if (frame_->format() == media::VideoFrame::NATIVE_TEXTURE) {
- DCHECK_EQ(media::VideoFrame::TEXTURE_YUV_420, frame_->texture_format());
+ if (frame_->storage_type() == media::VideoFrame::STORAGE_TEXTURE) {
+ DCHECK_EQ(media::VideoFrame::I420, frame_->format());
DCHECK_EQ(3u, frame_resources_.size()); // Alpha is not supported yet.
DCHECK(visible_rect.origin().IsOrigin());
DCHECK(visible_rect.size() == coded_size);
« no previous file with comments | « no previous file | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698