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

Unified Diff: cc/trees/layer_tree_impl_unittest.cc

Issue 2858053003: Delete code in PointIsClippedByAncestorClipNode which checked render surface clip. (Closed)
Patch Set: Created 3 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_impl.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 75ecb53633ec3e1f4f6effbd5136e67134857031..ba8566dab45a502e834c5f2a9a0736afb8d51762 100644
--- a/cc/trees/layer_tree_impl_unittest.cc
+++ b/cc/trees/layer_tree_impl_unittest.cc
@@ -461,37 +461,6 @@ TEST_F(LayerTreeImplTest, HitTestingSiblings) {
EXPECT_EQ(3, result_layer->id());
}
-TEST_F(LayerTreeImplTest, HitTestingPointOutsideMaxTextureSize) {
- gfx::Transform identity_matrix;
- int max_texture_size =
- host_impl().active_tree()->resource_provider()->max_texture_size();
- gfx::Size bounds(max_texture_size + 100, max_texture_size + 100);
-
- LayerImpl* root = root_layer();
- root->SetBounds(bounds);
-
- std::unique_ptr<LayerImpl> surface =
- LayerImpl::Create(host_impl().active_tree(), 2);
- surface->SetBounds(bounds);
- surface->SetMasksToBounds(true);
- surface->SetDrawsContent(true);
- surface->test_properties()->force_render_surface = true;
-
- root->test_properties()->AddChild(std::move(surface));
- host_impl().SetViewportSize(root->bounds());
- host_impl().UpdateNumChildrenAndDrawPropertiesForActiveTree();
-
- gfx::PointF test_point(max_texture_size - 50, max_texture_size - 50);
- LayerImpl* result_layer =
- host_impl().active_tree()->FindLayerThatIsHitByPoint(test_point);
- EXPECT_TRUE(result_layer);
-
- test_point = gfx::PointF(max_texture_size + 50, max_texture_size + 50);
- result_layer =
- host_impl().active_tree()->FindLayerThatIsHitByPoint(test_point);
- EXPECT_FALSE(result_layer);
-}
-
TEST_F(LayerTreeImplTest, HitTestingForSinglePerspectiveLayer) {
// perspective_projection_about_center * translation_by_z is designed so that
// the 100 x 100 layer becomes 50 x 50, and remains centered at (50, 50).
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698