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 #ifndef UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ | 5 #ifndef UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ |
6 #define UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ | 6 #define UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "ui/compositor/compositor_export.h" | 9 #include "ui/compositor/compositor_export.h" |
10 | 10 |
(...skipping 13 matching lines...) Expand all Loading... |
24 // between two composites (just before the composite as part of the | 24 // between two composites (just before the composite as part of the |
25 // composite cycle). If the compositor is locked, it will not send this | 25 // composite cycle). If the compositor is locked, it will not send this |
26 // this signal. | 26 // this signal. |
27 virtual void OnCompositingDidCommit(Compositor* compositor) = 0; | 27 virtual void OnCompositingDidCommit(Compositor* compositor) = 0; |
28 | 28 |
29 // Called when compositing started: it has taken all the layer changes into | 29 // Called when compositing started: it has taken all the layer changes into |
30 // account and has issued the graphics commands. | 30 // account and has issued the graphics commands. |
31 virtual void OnCompositingStarted(Compositor* compositor, | 31 virtual void OnCompositingStarted(Compositor* compositor, |
32 base::TimeTicks start_time) = 0; | 32 base::TimeTicks start_time) = 0; |
33 | 33 |
| 34 // Called when compositing completes: the present to screen has completed. |
| 35 virtual void OnCompositingEnded(Compositor* compositor) = 0; |
| 36 |
34 // Called when the compositor lock state changes. | 37 // Called when the compositor lock state changes. |
35 virtual void OnCompositingLockStateChanged(Compositor* compositor) = 0; | 38 virtual void OnCompositingLockStateChanged(Compositor* compositor) = 0; |
36 | 39 |
37 // Called at the top of the compositor's destructor, to give observers a | 40 // Called at the top of the compositor's destructor, to give observers a |
38 // chance to remove themselves. | 41 // chance to remove themselves. |
39 virtual void OnCompositingShuttingDown(Compositor* compositor) = 0; | 42 virtual void OnCompositingShuttingDown(Compositor* compositor) = 0; |
40 }; | 43 }; |
41 | 44 |
42 } // namespace ui | 45 } // namespace ui |
43 | 46 |
44 #endif // UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ | 47 #endif // UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ |
OLD | NEW |