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

Unified Diff: ui/gfx/compositor/layer_observer.h

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Move compositing notifications to Layer Created 9 years, 4 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
Index: ui/gfx/compositor/layer_observer.h
diff --git a/ui/gfx/compositor/layer_observer.h b/ui/gfx/compositor/layer_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..cf20e4ad3135b5f67e0d8086af8db584b2ad103d
--- /dev/null
+++ b/ui/gfx/compositor/layer_observer.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2011 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_GFX_COMPOSITOR_LAYER_OBSERVER_H_
+#define UI_GFX_COMPOSITOR_LAYER_OBSERVER_H_
+#pragma once
+
+namespace ui {
+
+class Layer;
+
+// Paint listeners can be installed on views to allow other parties to be
+// notified when compositing completes.
+class LayerObserver {
+ public:
+ // This is called after every draw.
+ virtual void OnDraw(Layer* view) = 0;
+
+ protected:
+ virtual ~LayerObserver() {}
+};
+
+} // namespace ui
+
+#endif // UI_GFX_COMPOSITOR_LAYER_OBSERVER_H_
« no previous file with comments | « ui/gfx/compositor/layer.cc ('k') | ui/gfx/interpolated_transform.h » ('j') | views/view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698