| Index: ui/gfx/compositor/compositor.cc
|
| diff --git a/ui/gfx/compositor/compositor.cc b/ui/gfx/compositor/compositor.cc
|
| index 485dc2d5c6468ff0ab368a7e944ea79b0a292784..97508f3bb9130d237f121b0c168562e4e4eec69f 100644
|
| --- a/ui/gfx/compositor/compositor.cc
|
| +++ b/ui/gfx/compositor/compositor.cc
|
| @@ -35,6 +35,8 @@ void Compositor::ScheduleDraw() {
|
| }
|
|
|
| void Compositor::SetRootLayer(Layer* root_layer) {
|
| + if (root_layer_ == root_layer)
|
| + return;
|
| if (root_layer_)
|
| root_layer_->SetCompositor(NULL);
|
| root_layer_ = root_layer;
|
|
|