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

Unified Diff: cc/playback/picture_pile_impl.cc

Issue 1314943008: cc: Remove implicit conversions from Rect to RectF in src/cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
Index: cc/playback/picture_pile_impl.cc
diff --git a/cc/playback/picture_pile_impl.cc b/cc/playback/picture_pile_impl.cc
index 8d2ce5c7a4455b047f730662a45fddb9cd6efde2..9a7112b3b9134e7838bd0dba7280086b33074c16 100644
--- a/cc/playback/picture_pile_impl.cc
+++ b/cc/playback/picture_pile_impl.cc
@@ -210,8 +210,8 @@ void PicturePileImpl::RasterCommon(SkCanvas* canvas,
DCHECK(contents_scale >= min_contents_scale_);
canvas->translate(-canvas_rect.x(), -canvas_rect.y());
- gfx::Rect content_tiling_rect = gfx::ToEnclosingRect(
- gfx::ScaleRect(gfx::Rect(tiling_.tiling_size()), contents_scale));
+ gfx::Rect content_tiling_rect = gfx::ScaleToEnclosingRect(
+ gfx::Rect(tiling_.tiling_size()), contents_scale);
content_tiling_rect.Intersect(canvas_rect);
canvas->clipRect(gfx::RectToSkRect(content_tiling_rect),

Powered by Google App Engine
This is Rietveld 408576698