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

Unified Diff: cc/layers/layer.cc

Issue 12967018: cc: Avoid pointless gfx::Point/Size contructors when making Rects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RectFs as well Created 7 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/io_surface_layer_impl.cc ('k') | cc/layers/layer_iterator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.cc
diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
index 105b4e48fa24eee5bcd0ab50879734d28f7ca163..51042a4e7d4e3c0a4208e67b309a400e3594c44f 100644
--- a/cc/layers/layer.cc
+++ b/cc/layers/layer.cc
@@ -126,7 +126,7 @@ gfx::Rect Layer::LayerRectToContentRect(const gfx::RectF& layer_rect) const {
gfx::ScaleRect(layer_rect, contents_scale_x(), contents_scale_y());
// Intersect with content rect to avoid the extra pixel because for some
// values x and y, ceil((x / y) * y) may be x + 1.
- content_rect.Intersect(gfx::Rect(gfx::Point(), content_bounds()));
+ content_rect.Intersect(gfx::Rect(content_bounds()));
return gfx::ToEnclosingRect(content_rect);
}
« no previous file with comments | « cc/layers/io_surface_layer_impl.cc ('k') | cc/layers/layer_iterator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698