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

Unified Diff: ui/compositor/test/draw_waiter_for_test.h

Issue 2144733005: [WIP] cc: Plumb SurfaceId from clients Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure only SurfaceFactoy and tests can update hierarchy Created 4 years, 5 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 | « ui/compositor/compositor_observer.h ('k') | ui/compositor/test/draw_waiter_for_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/draw_waiter_for_test.h
diff --git a/ui/compositor/test/draw_waiter_for_test.h b/ui/compositor/test/draw_waiter_for_test.h
index 0c4c195fae63edb8e7e59c0df3fac3e7ff7e5a1e..1f3ab01c05e7dfd6717a60f0d3a318adfb5740c9 100644
--- a/ui/compositor/test/draw_waiter_for_test.h
+++ b/ui/compositor/test/draw_waiter_for_test.h
@@ -20,6 +20,9 @@ namespace ui {
// potential for re-entrancy).
class DrawWaiterForTest : public CompositorObserver {
public:
+ // Waits for the compositor to get an OutputSurface.
+ static void WaitForCompositingInitialized(Compositor* compositor);
+
// Waits for a draw to be issued by the compositor. If the test times out
// here, there may be a logic error in the compositor code causing it
// not to draw.
@@ -34,6 +37,7 @@ class DrawWaiterForTest : public CompositorObserver {
private:
enum WaitEvent {
WAIT_FOR_COMMIT,
+ WAIT_FOR_COMPOSITING_INITIALIZED,
WAIT_FOR_COMPOSITING_STARTED,
WAIT_FOR_COMPOSITING_ENDED,
};
@@ -43,6 +47,7 @@ class DrawWaiterForTest : public CompositorObserver {
void WaitImpl(Compositor* compositor);
// CompositorObserver implementation.
+ void OnCompositingInitialized(Compositor* compositor) override;
void OnCompositingDidCommit(Compositor* compositor) override;
void OnCompositingStarted(Compositor* compositor,
base::TimeTicks start_time) override;
« no previous file with comments | « ui/compositor/compositor_observer.h ('k') | ui/compositor/test/draw_waiter_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698