Index: ui/aura/test/test_screen.cc |
diff --git a/ui/aura/test/test_screen.cc b/ui/aura/test/test_screen.cc |
index e5158ae771ec1c85b0b84ebef8f827f77e54db5d..425f58ebc6f9184cfe270ab3b59489f5a4100da0 100644 |
--- a/ui/aura/test/test_screen.cc |
+++ b/ui/aura/test/test_screen.cc |
@@ -48,7 +48,7 @@ void TestScreen::SetDeviceScaleFactor(float device_scale_factor) { |
void TestScreen::SetDisplayRotation(gfx::Display::Rotation rotation) { |
display_.set_rotation(rotation); |
// TODO(oshima|mukai): Update the display_ as well. |
- host_->SetTransform(GetRotationTransform() * GetUIScaleTransform()); |
+ host_->SetRootTransform(GetRotationTransform() * GetUIScaleTransform()); |
} |
void TestScreen::SetUIScale(float ui_scale) { |
@@ -57,7 +57,7 @@ void TestScreen::SetUIScale(float ui_scale) { |
gfx::Rect new_bounds = gfx::ToNearestRect( |
gfx::ScaleRect(bounds_in_pixel, 1.0f / ui_scale)); |
display_.SetScaleAndBounds(display_.device_scale_factor(), new_bounds); |
- host_->SetTransform(GetRotationTransform() * GetUIScaleTransform()); |
+ host_->SetRootTransform(GetRotationTransform() * GetUIScaleTransform()); |
} |
gfx::Transform TestScreen::GetRotationTransform() const { |