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

Unified Diff: chrome/browser/android/compositor/scene_layer/static_tab_scene_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/scene_layer/static_tab_scene_layer.cc
diff --git a/chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.cc b/chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.cc
index 540a963e25058621091d7c6003e0aa9803ce3f54..d5f16bd7c9713c0457c6e60ff80eb83c268d8798 100644
--- a/chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.cc
+++ b/chrome/browser/android/compositor/scene_layer/static_tab_scene_layer.cc
@@ -73,7 +73,7 @@ void StaticTabSceneLayer::UpdateTabLayer(JNIEnv* env,
// Set up the content layer and move it to the proper position.
content_layer_->layer()->SetBounds(gfx::Size(width, height));
- content_layer_->layer()->SetPosition(gfx::Point(x, y));
+ content_layer_->layer()->SetPosition(gfx::PointF(x, y));
content_layer_->SetProperties(
id, can_use_live_layer, can_use_ntp_fallback, static_to_view_blend,
should_override_content_alpha, content_alpha_override, saturation,
@@ -106,7 +106,7 @@ void StaticTabSceneLayer::UpdateTabLayer(JNIEnv* env,
y += content_viewport_offset.y();
}
- content_layer_->layer()->SetPosition(gfx::Point(x, y));
+ content_layer_->layer()->SetPosition(gfx::PointF(x, y));
content_layer_->layer()->SetIsDrawable(true);
layer_->AddChild(content_layer_->layer());

Powered by Google App Engine
This is Rietveld 408576698