| 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 17 matching lines...) Expand all Loading... |
| 28 // account and has issued the graphics commands. | 28 // account and has issued the graphics commands. |
| 29 virtual void OnCompositingStarted(Compositor* compositor, | 29 virtual void OnCompositingStarted(Compositor* compositor, |
| 30 base::TimeTicks start_time) = 0; | 30 base::TimeTicks start_time) = 0; |
| 31 | 31 |
| 32 // Called when the compositor lock state changes. | 32 // Called when the compositor lock state changes. |
| 33 virtual void OnCompositingLockStateChanged(Compositor* compositor) = 0; | 33 virtual void OnCompositingLockStateChanged(Compositor* compositor) = 0; |
| 34 | 34 |
| 35 // Called at the top of the compositor's destructor, to give observers a | 35 // Called at the top of the compositor's destructor, to give observers a |
| 36 // chance to remove themselves. | 36 // chance to remove themselves. |
| 37 virtual void OnCompositingShuttingDown(Compositor* compositor) = 0; | 37 virtual void OnCompositingShuttingDown(Compositor* compositor) = 0; |
| 38 |
| 39 virtual ~CompositorObserver() {} |
| 38 }; | 40 }; |
| 39 | 41 |
| 40 } // namespace ui | 42 } // namespace ui |
| 41 | 43 |
| 42 #endif // UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ | 44 #endif // UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_ |
| OLD | NEW |