| Index: ui/gfx/compositor/compositor.cc
|
| ===================================================================
|
| --- ui/gfx/compositor/compositor.cc (revision 106614)
|
| +++ ui/gfx/compositor/compositor.cc (working copy)
|
| @@ -25,15 +25,10 @@
|
| Compositor::~Compositor() {
|
| }
|
|
|
| -void Compositor::ScheduleDraw() {
|
| - delegate_->ScheduleDraw();
|
| -}
|
| -
|
| void Compositor::SetRootLayer(Layer* root_layer) {
|
| root_layer_ = root_layer;
|
| if (!root_layer_->GetCompositor())
|
| root_layer_->SetCompositor(this);
|
| - OnRootLayerChanged();
|
| }
|
|
|
| void Compositor::Draw(bool force_clear) {
|
| @@ -41,7 +36,7 @@
|
| return;
|
|
|
| NotifyStart(force_clear);
|
| - DrawTree();
|
| + root_layer_->DrawTree();
|
| NotifyEnd();
|
| }
|
|
|
| @@ -57,14 +52,6 @@
|
| return observer_list_.HasObserver(observer);
|
| }
|
|
|
| -void Compositor::OnRootLayerChanged() {
|
| - ScheduleDraw();
|
| -}
|
| -
|
| -void Compositor::DrawTree() {
|
| - root_layer_->DrawTree();
|
| -}
|
| -
|
| void Compositor::NotifyStart(bool clear) {
|
| OnNotifyStart(clear);
|
| }
|
|
|