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

Unified Diff: cc/trees/layer_tree_host_unittest_proxy.cc

Issue 1419283002: cc: Split Proxy and TaskRunnerProvider for the LayerTreeHost (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 1 month 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/trees/layer_tree_host_unittest_copyrequest.cc ('k') | cc/trees/occlusion_tracker_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_proxy.cc
diff --git a/cc/trees/layer_tree_host_unittest_proxy.cc b/cc/trees/layer_tree_host_unittest_proxy.cc
index 370760e0cf687409dee84f5152c163ee5603d5ec..78545ef2adafc82a5d3412e7be4c7602ae5b654d 100644
--- a/cc/trees/layer_tree_host_unittest_proxy.cc
+++ b/cc/trees/layer_tree_host_unittest_proxy.cc
@@ -84,14 +84,16 @@ class ThreadProxyTest : public ProxyTest {
}
const ThreadProxy::MainThreadOnly& ThreadProxyMainOnly() const {
+ DCHECK(task_runner_provider());
+ DCHECK(task_runner_provider()->HasImplThread());
DCHECK(proxy());
- DCHECK(proxy()->HasImplThread());
return static_cast<const ThreadProxy*>(proxy())->main();
}
const ThreadProxy::CompositorThreadOnly& ThreadProxyImplOnly() const {
+ DCHECK(task_runner_provider());
+ DCHECK(task_runner_provider()->HasImplThread());
DCHECK(proxy());
- DCHECK(proxy()->HasImplThread());
return static_cast<const ThreadProxy*>(proxy())->impl();
}
« no previous file with comments | « cc/trees/layer_tree_host_unittest_copyrequest.cc ('k') | cc/trees/occlusion_tracker_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698