Index: cc/layers/tiled_layer_unittest.cc |
diff --git a/cc/layers/tiled_layer_unittest.cc b/cc/layers/tiled_layer_unittest.cc |
index bc83743b7040521e3a28d161c965263485941925..19a3a068620edebf4a7be0542c6b9eac22e90d18 100644 |
--- a/cc/layers/tiled_layer_unittest.cc |
+++ b/cc/layers/tiled_layer_unittest.cc |
@@ -1385,7 +1385,7 @@ TEST_F(TiledLayerTest, TilesPaintedWithOcclusionAndScaling) { |
// This makes sure the painting works when the content space is scaled to |
// a different layer space. |
layer_tree_host_->SetViewportSize(gfx::Size(600, 600)); |
- layer->SetAnchorPoint(gfx::PointF()); |
+ layer->SetTransformOrigin(gfx::Point3F()); |
layer->SetBounds(gfx::Size(300, 300)); |
scale_layer->AddChild(layer); |
CalcDrawProps(&render_surface_layer_list); |
@@ -1554,25 +1554,25 @@ TEST_F(TiledLayerTest, DontAllocateContentsWhenTargetSurfaceCantBeAllocated) { |
new FakeTiledLayer(layer_tree_host_->contents_texture_manager())); |
root->SetBounds(root_rect.size()); |
- root->SetAnchorPoint(gfx::PointF()); |
+ root->SetTransformOrigin(gfx::Point3F()); |
enne (OOO)
2014/06/03 22:25:52
You're gonna hate me for this, but no need to set
chrishtr
2014/06/03 23:14:54
Done.
|
root->draw_properties().drawable_content_rect = root_rect; |
root->draw_properties().visible_content_rect = root_rect; |
root->AddChild(surface); |
surface->SetForceRenderSurface(true); |
- surface->SetAnchorPoint(gfx::PointF()); |
+ surface->SetTransformOrigin(gfx::Point3F()); |
surface->SetOpacity(0.5); |
surface->AddChild(child); |
surface->AddChild(child2); |
child->SetBounds(child_rect.size()); |
- child->SetAnchorPoint(gfx::PointF()); |
+ child->SetTransformOrigin(gfx::Point3F()); |
child->SetPosition(child_rect.origin()); |
child->draw_properties().visible_content_rect = child_rect; |
child->draw_properties().drawable_content_rect = root_rect; |
child2->SetBounds(child2_rect.size()); |
- child2->SetAnchorPoint(gfx::PointF()); |
+ child2->SetTransformOrigin(gfx::Point3F()); |
child2->SetPosition(child2_rect.origin()); |
child2->draw_properties().visible_content_rect = child2_rect; |
child2->draw_properties().drawable_content_rect = root_rect; |