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

Unified Diff: cc/trees/layer_tree_impl_unittest.cc

Issue 2659883003: cc: Remove direct calls to LayerImpl::SetHasRenderSurface from tests (Closed)
Patch Set: Created 3 years, 11 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_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl_unittest.cc
diff --git a/cc/trees/layer_tree_impl_unittest.cc b/cc/trees/layer_tree_impl_unittest.cc
index 8b33f9092f040fb36226b0602f8efabff94beaa2..bdf7c69867f41ea41b350713230387d8c19937ae 100644
--- a/cc/trees/layer_tree_impl_unittest.cc
+++ b/cc/trees/layer_tree_impl_unittest.cc
@@ -1066,7 +1066,7 @@ TEST_F(LayerTreeImplTest, HitTestingRespectsClipParents) {
grand_child->SetPosition(gfx::PointF(0.f, 40.f));
grand_child->SetBounds(gfx::Size(100, 50));
grand_child->SetDrawsContent(true);
- grand_child->SetHasRenderSurface(true);
+ grand_child->test_properties()->force_render_surface = true;
// This should let |grand_child| "escape" |child|'s clip.
grand_child->test_properties()->clip_parent = root;
@@ -1118,7 +1118,7 @@ TEST_F(LayerTreeImplTest, HitTestingRespectsScrollParents) {
grand_child->SetBounds(gfx::Size(200, 200));
grand_child->SetDrawsContent(true);
- grand_child->SetHasRenderSurface(true);
+ grand_child->test_properties()->force_render_surface = true;
scroll_child->test_properties()->AddChild(std::move(grand_child));
root->test_properties()->AddChild(std::move(scroll_child));
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698