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

Unified Diff: cc/test/layer_tree_test.cc

Issue 1020803002: Don't let unittests access LTH from the impl thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/layer_tree_test.h ('k') | 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.cc
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
index 3c6ff57baeaebe5bf0f899ffd2557d842c06d77a..faa45beda91eff42333a08c2d8ea6accb60d8389 100644
--- a/cc/test/layer_tree_test.cc
+++ b/cc/test/layer_tree_test.cc
@@ -878,4 +878,9 @@ void LayerTreeTest::DestroyLayerTreeHost() {
layer_tree_host_ = nullptr;
}
+LayerTreeHost* LayerTreeTest::layer_tree_host() {
+ DCHECK(!proxy() || proxy()->IsMainThread() || proxy()->IsMainThreadBlocked());
danakj 2015/03/19 16:37:44 when is proxy null? can you say it in a comment?
+ return layer_tree_host_.get();
+}
+
} // namespace cc
« no previous file with comments | « cc/test/layer_tree_test.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698