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

Unified Diff: cc/trees/layer_tree_host_unittest_damage.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/trees/layer_tree_host_unittest_damage.cc
diff --git a/cc/trees/layer_tree_host_unittest_damage.cc b/cc/trees/layer_tree_host_unittest_damage.cc
index 20667bf54a209717917cc33b986658f9ed6ad008..51475d4f71634657f65c3d7514346b72c3545bc5 100644
--- a/cc/trees/layer_tree_host_unittest_damage.cc
+++ b/cc/trees/layer_tree_host_unittest_damage.cc
@@ -245,7 +245,7 @@ class LayerTreeHostDamageTestForcedFullDamage : public LayerTreeHostDamageTest {
child_ = FakePictureLayer::Create(layer_settings(), &client_);
root_->SetBounds(gfx::Size(500, 500));
- child_->SetPosition(gfx::Point(100, 100));
+ child_->SetPosition(gfx::PointF(100.f, 100.f));
child_->SetBounds(gfx::Size(30, 30));
root_->AddChild(child_);
@@ -351,7 +351,7 @@ class LayerTreeHostScrollbarDamageTest : public LayerTreeHostDamageTest {
scoped_refptr<Layer> scrollbar_layer = FakePaintedScrollbarLayer::Create(
layer_settings(), false, true, content_layer->id());
- scrollbar_layer->SetPosition(gfx::Point(300, 300));
+ scrollbar_layer->SetPosition(gfx::PointF(300.f, 300.f));
scrollbar_layer->SetBounds(gfx::Size(10, 100));
scrollbar_layer->ToScrollbarLayer()->SetClipLayer(scroll_clip_layer->id());
scrollbar_layer->ToScrollbarLayer()->SetScrollLayer(content_layer->id());
@@ -442,7 +442,7 @@ class LayerTreeHostDamageTestScrollbarDoesDamage
Layer* root = layer_tree_host()->root_layer();
Layer* scroll_clip_layer = root->child_at(0);
Layer* scroll_layer = scroll_clip_layer->child_at(0);
- scroll_layer->SetPosition(gfx::Point(10, 10));
+ scroll_layer->SetPosition(gfx::PointF(10.f, 10.f));
}
void ResizeScrollLayer() {

Powered by Google App Engine
This is Rietveld 408576698