Index: content/browser/renderer_host/compositor_impl_android.cc |
diff --git a/content/browser/renderer_host/compositor_impl_android.cc b/content/browser/renderer_host/compositor_impl_android.cc |
index 7922764ae84b28834b51f03a916ed9cbb52be225..bc9028a6bbc7b25838370f3dbdc5f75757075abd 100644 |
--- a/content/browser/renderer_host/compositor_impl_android.cc |
+++ b/content/browser/renderer_host/compositor_impl_android.cc |
@@ -503,12 +503,11 @@ |
params.animation_host = cc::AnimationHost::CreateMainInstance(); |
host_ = cc::LayerTreeHost::CreateSingleThreaded(this, ¶ms); |
DCHECK(!host_->visible()); |
- host_->GetLayerTree()->SetRootLayer(root_window_->GetLayer()); |
+ host_->SetRootLayer(root_window_->GetLayer()); |
host_->set_surface_client_id(surface_id_allocator_->client_id()); |
- host_->GetLayerTree()->SetViewportSize(size_); |
- host_->GetLayerTree()->set_has_transparent_background( |
- has_transparent_background_); |
- host_->GetLayerTree()->SetDeviceScaleFactor(device_scale_factor_); |
+ host_->SetViewportSize(size_); |
+ host_->set_has_transparent_background(has_transparent_background_); |
+ host_->SetDeviceScaleFactor(device_scale_factor_); |
if (needs_animate_) |
host_->SetNeedsAnimate(); |
@@ -540,7 +539,7 @@ |
void CompositorImpl::setDeviceScaleFactor(float factor) { |
device_scale_factor_ = factor; |
if (host_) |
- host_->GetLayerTree()->SetDeviceScaleFactor(factor); |
+ host_->SetDeviceScaleFactor(factor); |
} |
void CompositorImpl::SetWindowBounds(const gfx::Size& size) { |
@@ -549,7 +548,7 @@ |
size_ = size; |
if (host_) |
- host_->GetLayerTree()->SetViewportSize(size); |
+ host_->SetViewportSize(size); |
if (display_) |
display_->Resize(size); |
root_window_->GetLayer()->SetBounds(size); |
@@ -558,7 +557,7 @@ |
void CompositorImpl::SetHasTransparentBackground(bool flag) { |
has_transparent_background_ = flag; |
if (host_) |
- host_->GetLayerTree()->set_has_transparent_background(flag); |
+ host_->set_has_transparent_background(flag); |
} |
void CompositorImpl::SetNeedsComposite() { |