| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "cc/base/tiling_data.h" | 5 #include "cc/base/tiling_data.h" |
| 6 | 6 |
| 7 #include <vector> |
| 8 |
| 7 #include "cc/test/geometry_test_utils.h" | 9 #include "cc/test/geometry_test_utils.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 11 |
| 10 namespace cc { | 12 namespace cc { |
| 11 namespace { | 13 namespace { |
| 12 | 14 |
| 13 int NumTiles( | 15 int NumTiles( |
| 14 gfx::Size max_texture_size, | 16 gfx::Size max_texture_size, |
| 15 gfx::Size total_size, | 17 gfx::Size total_size, |
| 16 bool has_border_texels) { | 18 bool has_border_texels) { |
| (...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1160 TestDiff(big_border, gfx::Rect(5, 5, 100, 100), gfx::Rect(5, 5, 1, 1), 0); | 1162 TestDiff(big_border, gfx::Rect(5, 5, 100, 100), gfx::Rect(5, 5, 1, 1), 0); |
| 1161 } | 1163 } |
| 1162 | 1164 |
| 1163 TEST(TilingDataTest, DifferenceIteratorNoTiles) { | 1165 TEST(TilingDataTest, DifferenceIteratorNoTiles) { |
| 1164 TilingData data(gfx::Size(100, 100), gfx::Size(), false); | 1166 TilingData data(gfx::Size(100, 100), gfx::Size(), false); |
| 1165 TestDiff(data, gfx::Rect(0, 0, 100, 100), gfx::Rect(0, 0, 5, 5), 0); | 1167 TestDiff(data, gfx::Rect(0, 0, 100, 100), gfx::Rect(0, 0, 5, 5), 0); |
| 1166 } | 1168 } |
| 1167 | 1169 |
| 1168 } // namespace | 1170 } // namespace |
| 1169 } // namespace cc | 1171 } // namespace cc |
| OLD | NEW |