| Index: ui/compositor/compositor.cc
|
| diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
|
| index c50f9efdddb5321b6095e8c8a8bf4b64482433b9..b9481e0e0b24577a28cf3ea4e2bd1434ddf677dd 100644
|
| --- a/ui/compositor/compositor.cc
|
| +++ b/ui/compositor/compositor.cc
|
| @@ -162,7 +162,7 @@ Compositor::~Compositor() {
|
| DCHECK(begin_frame_observer_list_.empty());
|
|
|
| if (root_layer_)
|
| - root_layer_->SetCompositor(NULL);
|
| + root_layer_->ResetCompositor();
|
|
|
| // Stop all outstanding draws before telling the ContextFactory to tear
|
| // down any contexts that the |host_| may rely upon.
|
| @@ -184,13 +184,11 @@ void Compositor::SetRootLayer(Layer* root_layer) {
|
| if (root_layer_ == root_layer)
|
| return;
|
| if (root_layer_)
|
| - root_layer_->SetCompositor(NULL);
|
| + root_layer_->ResetCompositor();
|
| root_layer_ = root_layer;
|
| - if (root_layer_ && !root_layer_->GetCompositor())
|
| - root_layer_->SetCompositor(this);
|
| root_web_layer_->RemoveAllChildren();
|
| if (root_layer_)
|
| - root_web_layer_->AddChild(root_layer_->cc_layer());
|
| + root_layer_->SetCompositor(this, root_web_layer_);
|
| }
|
|
|
| void Compositor::SetHostHasTransparentBackground(
|
|
|