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

Unified Diff: cc/test/layer_tree_test.h

Issue 17114008: cc: Remove cc::Thread and cc::ThreadImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm-thread: NULLrefptrs 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 | « cc/test/fake_proxy.h ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_test.h
diff --git a/cc/test/layer_tree_test.h b/cc/test/layer_tree_test.h
index 2d67a44ed6dd6b01fb4a7e17582a8d2b53bac3e0..ba33b6e886b5cc3f40e8d114ef9ae9a5a0381546 100644
--- a/cc/test/layer_tree_test.h
+++ b/cc/test/layer_tree_test.h
@@ -7,7 +7,6 @@
#include "base/memory/ref_counted.h"
#include "base/threading/thread.h"
-#include "cc/base/thread.h"
#include "cc/trees/layer_tree_host.h"
#include "cc/trees/layer_tree_host_impl.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -141,7 +140,10 @@ class LayerTreeTest : public testing::Test, public TestHooks {
bool delegating_renderer,
bool impl_side_painting);
- Thread* ImplThread() { return proxy() ? proxy()->ImplThread() : NULL; }
+ bool HasImplThread() { return proxy() ? proxy()->HasImplThread() : false; }
+ base::SingleThreadTaskRunner* ImplThreadTaskRunner() {
+ return proxy() ? proxy()->ImplThreadTaskRunner() : NULL;
+ }
Proxy* proxy() const {
return layer_tree_host_ ? layer_tree_host_->proxy() : NULL;
}
@@ -174,7 +176,7 @@ class LayerTreeTest : public testing::Test, public TestHooks {
int timeout_seconds_;
- scoped_ptr<Thread> main_ccthread_;
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
scoped_ptr<base::Thread> impl_thread_;
base::CancelableClosure timeout_;
base::WeakPtr<LayerTreeTest> main_thread_weak_ptr_;
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698