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

Unified Diff: blimp/client/core/compositor/blimp_compositor_manager.h

Issue 2320923002: Add a full Blimp integration test. (Closed)
Patch Set: Addressed more comments, added thread restriction bypass for tests. Created 4 years, 3 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: blimp/client/core/compositor/blimp_compositor_manager.h
diff --git a/blimp/client/core/compositor/blimp_compositor_manager.h b/blimp/client/core/compositor/blimp_compositor_manager.h
index dc1dfbd13a63e4b235235aff324961e661a0f0e1..fbfe3e67c6e70fe15c162af95dc80e24b3af3035 100644
--- a/blimp/client/core/compositor/blimp_compositor_manager.h
+++ b/blimp/client/core/compositor/blimp_compositor_manager.h
@@ -36,6 +36,11 @@ class BlimpCompositorManager
bool OnTouchEvent(const ui::MotionEvent& motion_event);
+ // Notifies |callback| when all pending commits on the active BlimpCompositor
+ // have been drawn to the screen. If the active compositor is destroyed or
+ // becomes hidden |callback| will be notified.
+ void NotifyWhenDonePendingCommits(base::Closure callback);
+
scoped_refptr<cc::Layer> layer() const { return layer_; }
protected:

Powered by Google App Engine
This is Rietveld 408576698