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

Unified Diff: cc/test/layer_tree_test_common.h

Issue 11344004: Remove WebKit::Platform dependencies from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix webkit_compositor_bindings_unittests Created 8 years, 2 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 | « cc/single_thread_proxy.cc ('k') | cc/test/layer_tree_test_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_test_common.h
diff --git a/cc/test/layer_tree_test_common.h b/cc/test/layer_tree_test_common.h
index 10f35cae90899c6d998a65cde9d1ef4a4ded8acc..d61557cb68417345efde1d8e6534533f5ab17be3 100644
--- a/cc/test/layer_tree_test_common.h
+++ b/cc/test/layer_tree_test_common.h
@@ -7,19 +7,20 @@
#include "base/hash_tables.h"
#include "base/memory/ref_counted.h"
+#include "base/threading/thread.h"
#include "cc/layer_tree_host.h"
#include "cc/layer_tree_host_impl.h"
#include "cc/scoped_thread_proxy.h"
#include "cc/test/compositor_fake_web_graphics_context_3d.h"
#include "testing/gtest/include/gtest/gtest.h"
#include <public/WebAnimationDelegate.h>
-#include <public/WebThread.h>
namespace cc {
class LayerImpl;
class LayerTreeHost;
class LayerTreeHostClient;
class LayerTreeHostImpl;
+class Thread;
}
namespace WebKitTests {
@@ -89,8 +90,6 @@ public:
void doBeginTest();
void timeout();
- void clearTimeout() { m_timeoutTask = 0; }
-
cc::LayerTreeHost* layerTreeHost() { return m_layerTreeHost.get(); }
protected:
@@ -114,7 +113,8 @@ protected:
void dispatchDidAddAnimation();
virtual void runTest(bool threaded);
- WebKit::WebThread* webThread() const { return m_webThread.get(); }
+
+ cc::Thread* implThread() { return m_implCCThread.get(); }
cc::LayerTreeSettings m_settings;
scoped_ptr<MockLayerImplTreeHostClient> m_client;
@@ -131,9 +131,10 @@ private:
bool m_scheduled;
bool m_started;
- scoped_ptr<WebKit::WebThread> m_webThread;
- TimeoutTask* m_timeoutTask;
- BeginTask* m_beginTask;
+ scoped_ptr<cc::Thread> m_mainCCThread;
+ scoped_ptr<cc::Thread> m_implCCThread;
+ scoped_ptr<base::Thread> m_implThread;
+ base::CancelableClosure m_timeout;
};
class ThreadedTestThreadOnly : public ThreadedTest {
« no previous file with comments | « cc/single_thread_proxy.cc ('k') | cc/test/layer_tree_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698