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

Unified Diff: ui/compositor/compositor_animation_observer.h

Issue 427103002: compositor: Add rAF-like functionality for the UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/compositor.gyp ('k') | ui/compositor/layer_animator_collection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor_animation_observer.h
diff --git a/ui/compositor/compositor_animation_observer.h b/ui/compositor/compositor_animation_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..facfe5a04824efd37a57bb3d6595a6cf7b3e560c
--- /dev/null
+++ b/ui/compositor/compositor_animation_observer.h
@@ -0,0 +1,22 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_COMPOSITOR_COMPOSITOR_ANIMATION_OBSERVER_H_
+#define UI_COMPOSITOR_COMPOSITOR_ANIMATION_OBSERVER_H_
+
+#include "base/time/time.h"
+#include "ui/compositor/compositor_export.h"
+
+namespace ui {
+
+class COMPOSITOR_EXPORT CompositorAnimationObserver {
+ public:
+ virtual ~CompositorAnimationObserver() {}
+
+ virtual void OnAnimationStep(base::TimeTicks timestamp) = 0;
+};
+
+} // namespace ui
+
+#endif // UI_COMPOSITOR_COMPOSITOR_ANIMATION_OBSERVER_H_
« no previous file with comments | « ui/compositor/compositor.gyp ('k') | ui/compositor/layer_animator_collection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698