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

Unified Diff: ui/compositor/compositor.h

Issue 16304003: Unified OutputSurface::SwapBuffers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 205473 Created 7 years, 6 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 | « content/renderer/render_widget.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 8e59b7e57476ba2b4f0d9df79138e6fa9691d69c..908dd662a675bdab90f5ced3eb50ae01d9224b99 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -262,6 +262,9 @@ class COMPOSITOR_EXPORT DrawWaiterForTest : public ui::CompositorObserver {
// not to draw.
static void Wait(Compositor* compositor);
+ // Waits for a commit instead of a draw.
+ static void WaitForCommit(Compositor* compositor);
+
private:
DrawWaiterForTest();
virtual ~DrawWaiterForTest();
@@ -281,6 +284,8 @@ class COMPOSITOR_EXPORT DrawWaiterForTest : public ui::CompositorObserver {
scoped_ptr<base::RunLoop> wait_run_loop_;
+ bool wait_for_commit_;
+
DISALLOW_COPY_AND_ASSIGN(DrawWaiterForTest);
};
« no previous file with comments | « content/renderer/render_widget.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698