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

Unified Diff: ui/compositor/compositor.h

Issue 13725019: Aura: Make views_unittests work with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « no previous file | 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 7c1d982854af0b5bad28e97eb588a91569d10c2d..a72d229a81c33fda10c32290e9c266a81bbc067d 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -7,6 +7,7 @@
#include <string>
+#include "base/gtest_prod_util.h"
#include "base/hash_tables.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -41,6 +42,10 @@ namespace WebKit {
class WebGraphicsContext3D;
}
+namespace views {
+FORWARD_DECLARE_TEST(ViewLayerTest, DontPaintChildrenWithLayers);
+}
+
namespace ui {
class Compositor;
@@ -326,6 +331,17 @@ class COMPOSITOR_EXPORT Compositor
bool IsLocked() { return compositor_lock_ != NULL; }
private:
+ const int kDrawWaitTimeOutMs = 1000;
+ friend class DrawWaiter;
piman 2013/04/05 19:28:49 I don't think DrawWaiter needs intimate knowledge
jonathan.backer 2013/04/05 20:08:04 Done. I think it's much cleaner now. Thanks.
+
+ // Waits at most |kDrawWaitTimeOutMs| milliseconds for a draw to be issued.
+ // If a draw is issued in that timeframe, it will complete. Returns true if
+ // a draw completed, false otherwise.
+ bool WaitForDraw();
+ friend class LayerWithDelegateTest;
+ friend class LayerWithRealCompositorTest;
+ FRIEND_TEST_ALL_PREFIXES(views::ViewLayerTest, DontPaintChildrenWithLayers);
+
friend class base::RefCounted<Compositor>;
friend class CompositorLock;
« no previous file with comments | « no previous file | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698