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

Unified Diff: cc/layers/video_layer_impl.cc

Issue 1645353003: VideoLayerImpl: subtract 1 from visible size when calculating tex stretch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: cc/layers/video_layer_impl.cc
diff --git a/cc/layers/video_layer_impl.cc b/cc/layers/video_layer_impl.cc
index d173cc6c2b6d0f511a802fb95d167aed98f9a1d1..8f3d70af76000b1538d521a4f80e393b1ce64e42 100644
--- a/cc/layers/video_layer_impl.cc
+++ b/cc/layers/video_layer_impl.cc
@@ -186,9 +186,9 @@ void VideoLayerImpl::AppendQuads(RenderPass* render_pass,
// Pixels for macroblocked formats.
const float tex_width_scale =
- static_cast<float>(visible_rect.width()) / coded_size.width();
+ static_cast<float>(visible_rect.width() - 1) / coded_size.width();
Pawel Osciak 2016/02/01 00:40:58 I'm wondering if we should be checking for 0,0 (an
const float tex_height_scale =
- static_cast<float>(visible_rect.height()) / coded_size.height();
+ static_cast<float>(visible_rect.height() - 1) / coded_size.height();
switch (frame_resource_type_) {
// TODO(danakj): Remove this, hide it in the hardware path.
« 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