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

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: 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/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

Powered by Google App Engine
This is Rietveld 408576698