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

Unified Diff: cc/test/layer_tree_host_common_test.cc

Issue 1221273003: cc: Convert backface LTHCommon tests from Layer->LayerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delete_main_thread_cdp
Patch Set: Swap arg order Created 5 years, 5 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_host_common_test.h ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_host_common_test.cc
diff --git a/cc/test/layer_tree_host_common_test.cc b/cc/test/layer_tree_host_common_test.cc
index 81983caa14dc7172c7efab4d4ad64d617ab58e83..1cde940b4ee228e783199aa505c58db0c88ecb65 100644
--- a/cc/test/layer_tree_host_common_test.cc
+++ b/cc/test/layer_tree_host_common_test.cc
@@ -102,12 +102,11 @@ void LayerTreeHostCommonTestBase::
gfx::Size device_viewport_size =
gfx::Size(root_layer->bounds().width() * device_scale_factor,
root_layer->bounds().height() * device_scale_factor);
- LayerList update_layer_list;
BuildPropertyTreesAndComputeVisibleRects(
root_layer, page_scale_layer, inner_viewport_scroll_layer,
outer_viewport_scroll_layer, page_scale_factor, device_scale_factor,
gfx::Rect(device_viewport_size), identity_transform,
- root_layer->layer_tree_host()->property_trees(), &update_layer_list);
+ root_layer->layer_tree_host()->property_trees(), &update_layer_list_);
}
void LayerTreeHostCommonTestBase::
@@ -170,6 +169,14 @@ void LayerTreeHostCommonTestBase::ExecuteCalculateDrawProperties(
LayerTreeHostCommon::CalculateDrawProperties(&inputs);
}
+bool LayerTreeHostCommonTestBase::UpdateLayerListContains(int id) const {
+ for (size_t i = 0; i < update_layer_list_.size(); ++i) {
+ if (update_layer_list_[i]->id() == id)
+ return true;
+ }
+ return false;
+}
+
LayerTreeHostCommonTest::LayerTreeHostCommonTest()
: LayerTreeHostCommonTestBase(LayerTreeSettings()) {
}
« no previous file with comments | « cc/test/layer_tree_host_common_test.h ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698