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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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/test/context_factories_for_test.cc ('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
deleted file mode 100644
index 55ca2fff0543d9edffb998c1dc496390a626ca8e..0000000000000000000000000000000000000000
--- a/ui/compositor/test/draw_waiter_for_test.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_COMPOSITOR_TEST_DRAW_WAITER_H_
-#define UI_COMPOSITOR_TEST_DRAW_WAITER_H_
-
-#include "base/run_loop.h"
-#include "ui/compositor/compositor_observer.h"
-
-class Compositor;
-
-namespace ui {
-
-// This is only to be used for test. It allows execution of other tasks on
-// the current message loop before the current task finishs (there is a
-// potential for re-entrancy).
-class DrawWaiterForTest : public CompositorObserver {
- public:
- // 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.
- static void Wait(Compositor* compositor);
-
- // Waits for a commit instead of a draw.
- static void WaitForCommit(Compositor* compositor);
-
- private:
- DrawWaiterForTest();
- ~DrawWaiterForTest() override;
-
- void WaitImpl(Compositor* compositor);
-
- // CompositorObserver implementation.
- void OnCompositingDidCommit(Compositor* compositor) override;
- void OnCompositingStarted(Compositor* compositor,
- base::TimeTicks start_time) override;
- void OnCompositingEnded(Compositor* compositor) override;
- void OnCompositingAborted(Compositor* compositor) override;
- void OnCompositingLockStateChanged(Compositor* compositor) override;
-
- scoped_ptr<base::RunLoop> wait_run_loop_;
-
- bool wait_for_commit_;
-
- DISALLOW_COPY_AND_ASSIGN(DrawWaiterForTest);
-};
-
-} // namespace ui
-
-#endif // UI_COMPOSITOR_TEST_DRAW_WAITER_H_
« no previous file with comments | « ui/compositor/test/context_factories_for_test.cc ('k') | ui/compositor/test/draw_waiter_for_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698