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

Unified Diff: cc/playback/raster_source_helper.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: rectfconvert-cc: rebase-and-sandwich-strategy Created 5 years, 3 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/playback/picture_pile_impl_unittest.cc ('k') | cc/quads/content_draw_quad_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/raster_source_helper.cc
diff --git a/cc/playback/raster_source_helper.cc b/cc/playback/raster_source_helper.cc
index bd5edda07c3933485fabc2c5a2c4494dbe4ceada..3655ba3cb9e749bddc443e3ad0259cd5fdbde3c5 100644
--- a/cc/playback/raster_source_helper.cc
+++ b/cc/playback/raster_source_helper.cc
@@ -60,7 +60,7 @@ void RasterSourceHelper::PrepareForPlaybackToCanvas(
// texel (since the recording won't cover it) and outside the last texel
// (due to linear filtering when using this texture).
gfx::Rect content_rect =
- gfx::ToEnclosingRect(gfx::ScaleRect(source_rect, contents_scale));
+ gfx::ScaleToEnclosingRect(source_rect, contents_scale);
// The final texel of content may only be partially covered by a
// rasterization; this rect represents the content rect that is fully
« no previous file with comments | « cc/playback/picture_pile_impl_unittest.cc ('k') | cc/quads/content_draw_quad_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698