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

Unified Diff: chrome/browser/android/compositor/layer/tab_handle_layer.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: chrome/browser/android/compositor/layer/tab_handle_layer.cc
diff --git a/chrome/browser/android/compositor/layer/tab_handle_layer.cc b/chrome/browser/android/compositor/layer/tab_handle_layer.cc
index 965e0547ff0ea0dea4b8da55c9ebfb16e716f493..2962769249356f053d96838d9a4d00455cf375f2 100644
--- a/chrome/browser/android/compositor/layer/tab_handle_layer.cc
+++ b/chrome/browser/android/compositor/layer/tab_handle_layer.cc
@@ -90,7 +90,7 @@ void TabHandleLayer::SetProperties(
}
gfx::Size tab_bounds(width, height);
- layer_->SetPosition(gfx::Point(x, y));
+ layer_->SetPosition(gfx::PointF(x, y));
DecorationTitle* title_layer = nullptr;
if (layer_title_cache_)
title_layer = layer_title_cache_->GetTitleLayer(id);
@@ -144,7 +144,7 @@ void TabHandleLayer::SetProperties(
title_x += original_x;
title_y += original_y;
}
- title_layer->layer()->SetPosition(gfx::Point(title_x, title_y));
+ title_layer->layer()->SetPosition(gfx::PointF(title_x, title_y));
if (is_loading) {
title_layer->SetIsLoading(true);
title_layer->SetSpinnerRotation(spinner_rotation);

Powered by Google App Engine
This is Rietveld 408576698