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

Unified Diff: cc/tiles/picture_layer_tiling.cc

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-gfx: . 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
Index: cc/tiles/picture_layer_tiling.cc
diff --git a/cc/tiles/picture_layer_tiling.cc b/cc/tiles/picture_layer_tiling.cc
index be8a7940f7048522a7e13e928e3b50a4f71c513c..76f8d6c87c977e02a4acb494e5d23cdcfff2a70a 100644
--- a/cc/tiles/picture_layer_tiling.cc
+++ b/cc/tiles/picture_layer_tiling.cc
@@ -531,8 +531,8 @@ gfx::Rect PictureLayerTiling::CoverageIterator::geometry_rect() const {
}
gfx::RectF PictureLayerTiling::CoverageIterator::texture_rect() const {
- gfx::PointF tex_origin =
- tiling_->tiling_data_.TileBoundsWithBorder(tile_i_, tile_j_).origin();
+ auto tex_origin = gfx::PointF(
+ tiling_->tiling_data_.TileBoundsWithBorder(tile_i_, tile_j_).origin());
// Convert from dest space => content space => texture space.
gfx::RectF texture_rect(current_geometry_rect_);

Powered by Google App Engine
This is Rietveld 408576698