Index: ui/compositor/compositor_observer.h |
diff --git a/ui/compositor/compositor_observer.h b/ui/compositor/compositor_observer.h |
index f76609f2edede523d916adbe9c23b894fcb7f20e..830f170ca22d8c69336ab08a4003c64fa3146829 100644 |
--- a/ui/compositor/compositor_observer.h |
+++ b/ui/compositor/compositor_observer.h |
@@ -14,6 +14,14 @@ class Compositor; |
// A compositor observer is notified when compositing completes. |
class COMPOSITOR_EXPORT CompositorObserver { |
public: |
+ // A commit proxies information from the main thread to the compositor |
+ // thread. It typically happens when some state changes that will require a |
+ // composite. In the multi-threaded case, many commits may happen between |
+ // two successive composites. In the single-threaded, a single commit |
+ // between two composites (just before the composite as part of the |
+ // composite cycle). |
+ virtual void OnCompositingDidCommit(Compositor* compositor) = 0; |
+ |
// Called when compositing will start. |
virtual void OnCompositingWillStart(Compositor* compositor) = 0; |