| Index: ui/compositor/compositor.cc
|
| diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
|
| index 9fb82223ace78f692846a3c574a84139a2495629..19c43ce2af45fabed5f6895b9bc119b89c107236 100644
|
| --- a/ui/compositor/compositor.cc
|
| +++ b/ui/compositor/compositor.cc
|
| @@ -220,7 +220,7 @@
|
| cc::AnimationTimeline::Create(cc::AnimationIdProvider::NextTimelineId());
|
| host_->animation_host()->AddAnimationTimeline(animation_timeline_.get());
|
|
|
| - host_->GetLayerTree()->SetRootLayer(root_web_layer_);
|
| + host_->SetRootLayer(root_web_layer_);
|
| host_->set_surface_client_id(surface_id_allocator_->client_id());
|
| host_->SetVisible(true);
|
| }
|
| @@ -324,8 +324,7 @@
|
|
|
| void Compositor::SetHostHasTransparentBackground(
|
| bool host_has_transparent_background) {
|
| - host_->GetLayerTree()->set_has_transparent_background(
|
| - host_has_transparent_background);
|
| + host_->set_has_transparent_background(host_has_transparent_background);
|
| }
|
|
|
| void Compositor::ScheduleFullRedraw() {
|
| @@ -357,13 +356,13 @@
|
| DCHECK_GT(scale, 0);
|
| if (!size_in_pixel.IsEmpty()) {
|
| size_ = size_in_pixel;
|
| - host_->GetLayerTree()->SetViewportSize(size_in_pixel);
|
| + host_->SetViewportSize(size_in_pixel);
|
| root_web_layer_->SetBounds(size_in_pixel);
|
| context_factory_->ResizeDisplay(this, size_in_pixel);
|
| }
|
| if (device_scale_factor_ != scale) {
|
| device_scale_factor_ = scale;
|
| - host_->GetLayerTree()->SetDeviceScaleFactor(scale);
|
| + host_->SetDeviceScaleFactor(scale);
|
| if (root_layer_)
|
| root_layer_->OnDeviceScaleFactorChanged(scale);
|
| }
|
| @@ -374,7 +373,7 @@
|
| }
|
|
|
| void Compositor::SetBackgroundColor(SkColor color) {
|
| - host_->GetLayerTree()->set_background_color(color);
|
| + host_->set_background_color(color);
|
| ScheduleDraw();
|
| }
|
|
|
|
|