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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 1864183002: cc: Main thread skip single layers instead of subtrees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Format the comments Created 4 years, 8 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/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_unittest_serialization.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.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 14e7f996b6f9d4b5d715fa66a2e5de040b18dbb8..89f658087f126f40b0be44eef98c6e97559fb8b9 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -6497,14 +6497,16 @@ class LayerTreeTestPageScaleFlags : public LayerTreeTest {
void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
LayerTreeHostCommon::CallFunctionForEveryLayer(
- host_impl->sync_tree(), [this](LayerImpl* layer) {
+ host_impl->sync_tree(),
+ [this](LayerImpl* layer) {
const std::vector<int>& list =
layer->IsAffectedByPageScale()
? this->affected_by_page_scale_
: this->not_affected_by_page_scale_;
EXPECT_TRUE(std::find(list.begin(), list.end(), layer->id()) !=
list.end());
- });
+ },
+ CallFunctionLayerType::ALL_LAYERS);
EndTest();
}
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_host_unittest_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698