| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/compositor/compositor.h" | 5 #include "ui/compositor/compositor.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 | 482 |
| 483 // Call ScheduleDraw() instead of Draw() in order to allow other | 483 // Call ScheduleDraw() instead of Draw() in order to allow other |
| 484 // CompositorObservers to be notified before starting another | 484 // CompositorObservers to be notified before starting another |
| 485 // draw cycle. | 485 // draw cycle. |
| 486 ScheduleDraw(); | 486 ScheduleDraw(); |
| 487 } | 487 } |
| 488 FOR_EACH_OBSERVER( | 488 FOR_EACH_OBSERVER( |
| 489 CompositorObserver, observer_list_, OnCompositingEnded(this)); | 489 CompositorObserver, observer_list_, OnCompositingEnded(this)); |
| 490 } | 490 } |
| 491 | 491 |
| 492 void Compositor::SetAuthoritativeVSyncInterval(base::TimeDelta interval) const { |
| 493 host_->SetAuthoritativeVSyncInterval(interval); |
| 494 } |
| 495 |
| 492 } // namespace ui | 496 } // namespace ui |
| OLD | NEW |