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

Unified Diff: cc/test/layer_tree_test.h

Issue 1126973002: cc: Make HasImplThread() function work in AfterTest(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing for landing. Created 5 years, 7 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 | cc/trees/layer_tree_host_unittest.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 ffba9e88c2d8026a8bee7e2f5999da6e8dffc91f..15ec2151b83c57480f241ce3d2189946ad998f83 100644
--- a/cc/test/layer_tree_test.h
+++ b/cc/test/layer_tree_test.h
@@ -184,7 +184,7 @@ class LayerTreeTest : public testing::Test, public TestHooks {
bool impl_side_painting);
virtual void RunTestWithImplSidePainting();
- bool HasImplThread() { return proxy() ? proxy()->HasImplThread() : false; }
+ bool HasImplThread() { return !!impl_thread_; }
base::SingleThreadTaskRunner* ImplThreadTaskRunner() {
DCHECK(proxy());
return proxy()->ImplThreadTaskRunner() ? proxy()->ImplThreadTaskRunner()
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698