Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(250)

Side by Side Diff: ui/compositor/compositor_animation_observer.h

Issue 1147323003: Made the CompositorAnimationObserver class usable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ANIMATION_OBSERVER_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_ANIMATION_OBSERVER_H_
6 #define UI_COMPOSITOR_COMPOSITOR_ANIMATION_OBSERVER_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_ANIMATION_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
11 namespace ui { 11 namespace ui {
12 12
13 class Compositor;
14
13 class COMPOSITOR_EXPORT CompositorAnimationObserver { 15 class COMPOSITOR_EXPORT CompositorAnimationObserver {
14 public: 16 public:
15 virtual ~CompositorAnimationObserver() {} 17 virtual ~CompositorAnimationObserver() {}
16 18
17 virtual void OnAnimationStep(base::TimeTicks timestamp) = 0; 19 virtual void OnAnimationStep(base::TimeTicks timestamp) = 0;
20 virtual void OnCompositingShuttingDown(Compositor* compositor) = 0;
18 }; 21 };
19 22
20 } // namespace ui 23 } // namespace ui
21 24
22 #endif // UI_COMPOSITOR_COMPOSITOR_ANIMATION_OBSERVER_H_ 25 #endif // UI_COMPOSITOR_COMPOSITOR_ANIMATION_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698