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

Unified Diff: cc/trees/layer_tree_host_common_unittest.cc

Issue 2764343006: cc : Make visible rect independant of render surface's is_clipped value (Closed)
Patch Set: remove fully visible path Created 3 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/trees/draw_property_utils.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_common_unittest.cc
diff --git a/cc/trees/layer_tree_host_common_unittest.cc b/cc/trees/layer_tree_host_common_unittest.cc
index e43a988097021b8298e141632795dc6187f7a5db..b47031e53bbc5eae7b4b03d4bf58bf980c5c245f 100644
--- a/cc/trees/layer_tree_host_common_unittest.cc
+++ b/cc/trees/layer_tree_host_common_unittest.cc
@@ -3973,28 +3973,6 @@ TEST_F(LayerTreeHostCommonTest,
EXPECT_EQ(gfx::Rect(100, 100), render_surface2->visible_layer_rect());
}
-TEST_F(LayerTreeHostCommonTest, VisibleRectOfUnclippedRenderSurface) {
- LayerImpl* root = root_layer_for_testing();
- LayerImpl* clip = AddChildToRoot<LayerImpl>();
- LayerImpl* render_surface1 = AddChild<LayerImpl>(clip);
- LayerImpl* render_surface2 = AddChild<LayerImpl>(render_surface1);
-
- root->SetBounds(gfx::Size(100, 100));
- clip->SetBounds(gfx::Size(50, 50));
- clip->SetMasksToBounds(true);
- render_surface1->SetBounds(gfx::Size(100, 100));
- render_surface1->test_properties()->force_render_surface = true;
- render_surface2->SetBounds(gfx::Size(100, 100));
- render_surface2->test_properties()->force_render_surface = true;
- render_surface2->SetDrawsContent(true);
-
- ExecuteCalculateDrawProperties(root);
- // The clip should be handled by render_surface1 and render_surface2 should
- // be unclipped and its visible rect should be clipped only by viewport clip.
- EXPECT_FALSE(render_surface2->is_clipped());
- EXPECT_EQ(gfx::Rect(100, 100), render_surface2->visible_layer_rect());
-}
-
TEST_F(LayerTreeHostCommonTest,
VisibleRectsWhenClipChildIsBetweenTwoRenderSurfaces) {
LayerImpl* root = root_layer_for_testing();
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698