OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/gfx/compositor/compositor.h" | 5 #include "ui/gfx/compositor/compositor.h" |
| 6 #include "ui/gfx/compositor/compositor_observer.h" |
6 | 7 |
7 namespace ui { | 8 namespace ui { |
8 | 9 |
9 // static | 10 void Compositor::NotifyStart() { |
10 Compositor* Compositor::Create(gfx::AcceleratedWidget widget, | 11 OnNotifyStart(); |
11 const gfx::Size& size) { | 12 // Could potentially notify observers here. |
12 return NULL; | |
13 } | 13 } |
14 | 14 |
| 15 void Compositor::NotifyEnd() { |
| 16 OnNotifyEnd(); |
| 17 FOR_EACH_OBSERVER(CompositorObserver, |
| 18 observer_list_, |
| 19 OnCompositingEnded()); |
| 20 } |
| 21 |
| 22 void Compositor::AddObserver(CompositorObserver* observer) { |
| 23 observer_list_.AddObserver(observer); |
| 24 } |
| 25 |
| 26 void Compositor::RemoveObserver(CompositorObserver* observer) { |
| 27 observer_list_.RemoveObserver(observer); |
| 28 } |
| 29 |
| 30 |
15 } // namespace ui | 31 } // namespace ui |
OLD | NEW |