Index: ui/compositor/compositor.h |
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h |
index 735954f4df030e9e21527205a25b4d08a0a7b966..09212dbd194d18fdd3c0177eb537fa4375d7ada4 100644 |
--- a/ui/compositor/compositor.h |
+++ b/ui/compositor/compositor.h |
@@ -6,6 +6,9 @@ |
#define UI_COMPOSITOR_COMPOSITOR_H_ |
#pragma once |
+#include <vector> |
+ |
+#include "base/callback.h" |
#include "base/hash_tables.h" |
#include "base/memory/ref_counted.h" |
#include "base/observer_list.h" |
@@ -210,6 +213,7 @@ class COMPOSITOR_EXPORT Compositor |
float scaleFactor); |
virtual WebKit::WebGraphicsContext3D* createContext3D(); |
virtual void didRebindGraphicsContext(bool success); |
+ virtual void didCommit(); |
virtual void didCommitAndDrawFrame(); |
virtual void didCompleteSwapBuffers(); |
virtual void scheduleComposite(); |
@@ -217,6 +221,9 @@ class COMPOSITOR_EXPORT Compositor |
int last_started_frame() { return last_started_frame_; } |
int last_ended_frame() { return last_ended_frame_; } |
+ void AddDidCommitCallback( |
piman
2012/07/09 22:40:01
It would be good to have the name and/or comments
jonathan.backer
2012/07/11 21:02:03
You're right: it's confusing. I changed it to fire
piman
2012/07/12 00:18:09
I'd rather be consistent.
|
+ const base::Callback<void(ui::Compositor*)>& callback); |
+ |
private: |
friend class base::RefCounted<Compositor>; |
@@ -252,6 +259,9 @@ class COMPOSITOR_EXPORT Compositor |
int last_ended_frame_; |
bool disable_schedule_composite_; |
+ |
+ std::vector< base::Callback<void(ui::Compositor*)> > |
+ did_commit_callbacks_; |
}; |
} // namespace ui |