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

Unified Diff: cc/layers/video_layer_impl.cc

Issue 1007953003: Revert of Increase YUV video clamping (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/output/gl_renderer.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 23d08eef5484a9e3aafd5caaaff27bc74199cc03..228f2ccdc8404341b54770e8271d8dfad4e1f9e6 100644
--- a/cc/layers/video_layer_impl.cc
+++ b/cc/layers/video_layer_impl.cc
@@ -229,20 +229,14 @@
color_space = YUVVideoDrawQuad::REC_709;
}
- gfx::Size min_tex_size = coded_size;
- for (size_t plane = 0; plane < 3u; ++plane) {
- min_tex_size.SetToMin(
- media::VideoFrame::PlaneSize(frame_->format(), plane, coded_size));
- }
-
gfx::RectF tex_coord_rect(
tex_x_offset, tex_y_offset, tex_width_scale, tex_height_scale);
YUVVideoDrawQuad* yuv_video_quad =
render_pass->CreateAndAppendDrawQuad<YUVVideoDrawQuad>();
yuv_video_quad->SetNew(
shared_quad_state, quad_rect, opaque_rect, visible_quad_rect,
- tex_coord_rect, min_tex_size, frame_resources_[0],
- frame_resources_[1], frame_resources_[2],
+ tex_coord_rect, coded_size, frame_resources_[0], frame_resources_[1],
+ frame_resources_[2],
frame_resources_.size() > 3 ? frame_resources_[3] : 0, color_space);
break;
}
« no previous file with comments | « no previous file | cc/output/gl_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698