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

Unified Diff: cc/output/gl_renderer.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 | « cc/layers/video_layer_impl.cc ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/gl_renderer.cc
diff --git a/cc/output/gl_renderer.cc b/cc/output/gl_renderer.cc
index f75cd0f6d002b0b26d8dd838059747e1fc829844..613ea4b16a3d7d91d20b769bbe6b040fa35cc509 100644
--- a/cc/output/gl_renderer.cc
+++ b/cc/output/gl_renderer.cc
@@ -2011,9 +2011,9 @@
// filtering from filtering outside the tex coord rect.
gfx::RectF clamp_rect(quad->tex_coord_rect);
// Special case: empty texture size implies no clamping.
- if (!quad->min_tex_size.IsEmpty()) {
- clamp_rect.Inset(0.5f / quad->min_tex_size.width(),
- 0.5f / quad->min_tex_size.height());
+ if (!quad->tex_size.IsEmpty()) {
+ clamp_rect.Inset(0.5f / quad->tex_size.width(),
+ 0.5f / quad->tex_size.height());
}
GLC(gl_, gl_->Uniform4f(clamp_rect_location, clamp_rect.x(), clamp_rect.y(),
clamp_rect.right(), clamp_rect.bottom()));
« no previous file with comments | « cc/layers/video_layer_impl.cc ('k') | cc/output/renderer_pixeltest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698