OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <limits> | 5 #include <limits> |
6 #include <set> | 6 #include <set> |
7 | 7 |
8 #include "cc/base/math_util.h" | 8 #include "cc/base/math_util.h" |
9 #include "cc/resources/picture_layer_tiling.h" | |
10 #include "cc/resources/picture_layer_tiling_set.h" | |
11 #include "cc/test/fake_output_surface.h" | 9 #include "cc/test/fake_output_surface.h" |
12 #include "cc/test/fake_output_surface_client.h" | 10 #include "cc/test/fake_output_surface_client.h" |
13 #include "cc/test/fake_picture_layer_tiling_client.h" | 11 #include "cc/test/fake_picture_layer_tiling_client.h" |
14 #include "cc/test/fake_picture_pile_impl.h" | 12 #include "cc/test/fake_picture_pile_impl.h" |
15 #include "cc/test/test_context_provider.h" | 13 #include "cc/test/test_context_provider.h" |
16 #include "cc/test/test_shared_bitmap_manager.h" | 14 #include "cc/test/test_shared_bitmap_manager.h" |
| 15 #include "cc/tiles/picture_layer_tiling.h" |
| 16 #include "cc/tiles/picture_layer_tiling_set.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 #include "ui/gfx/geometry/quad_f.h" | 18 #include "ui/gfx/geometry/quad_f.h" |
19 #include "ui/gfx/geometry/rect_conversions.h" | 19 #include "ui/gfx/geometry/rect_conversions.h" |
20 #include "ui/gfx/geometry/size_conversions.h" | 20 #include "ui/gfx/geometry/size_conversions.h" |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 namespace { | 23 namespace { |
24 | 24 |
25 static gfx::Rect ViewportInLayerSpace( | 25 static gfx::Rect ViewportInLayerSpace( |
26 const gfx::Transform& transform, | 26 const gfx::Transform& transform, |
(...skipping 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1966 tiling_->SetRasterSourceAndResize(pile); | 1966 tiling_->SetRasterSourceAndResize(pile); |
1967 | 1967 |
1968 // Tile size in the tiling should be resized to 250x200. | 1968 // Tile size in the tiling should be resized to 250x200. |
1969 EXPECT_EQ(250, tiling_->TilingDataForTesting().max_texture_size().width()); | 1969 EXPECT_EQ(250, tiling_->TilingDataForTesting().max_texture_size().width()); |
1970 EXPECT_EQ(200, tiling_->TilingDataForTesting().max_texture_size().height()); | 1970 EXPECT_EQ(200, tiling_->TilingDataForTesting().max_texture_size().height()); |
1971 EXPECT_EQ(0u, tiling_->AllTilesForTesting().size()); | 1971 EXPECT_EQ(0u, tiling_->AllTilesForTesting().size()); |
1972 } | 1972 } |
1973 | 1973 |
1974 } // namespace | 1974 } // namespace |
1975 } // namespace cc | 1975 } // namespace cc |
OLD | NEW |