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/test/fake_picture_pile_impl.h" | 5 #include "cc/test/fake_picture_pile_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "cc/test/impl_side_painting_settings.h" | 9 #include "cc/test/impl_side_painting_settings.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 EXPECT_LT(y, tiling_.num_tiles_y()); | 73 EXPECT_LT(y, tiling_.num_tiles_y()); |
74 | 74 |
75 if (!HasRecordingAt(x, y)) | 75 if (!HasRecordingAt(x, y)) |
76 return; | 76 return; |
77 picture_list_map_.erase(std::pair<int, int>(x, y)); | 77 picture_list_map_.erase(std::pair<int, int>(x, y)); |
78 EXPECT_FALSE(HasRecordingAt(x, y)); | 78 EXPECT_FALSE(HasRecordingAt(x, y)); |
79 | 79 |
80 UpdateRecordedRegion(); | 80 UpdateRecordedRegion(); |
81 } | 81 } |
82 | 82 |
| 83 void FakePicturePileImpl::RerecordPile() { |
| 84 for (int y = 0; y < num_tiles_y(); ++y) { |
| 85 for (int x = 0; x < num_tiles_x(); ++x) { |
| 86 RemoveRecordingAt(x, y); |
| 87 AddRecordingAt(x, y); |
| 88 } |
| 89 } |
| 90 } |
| 91 |
83 } // namespace cc | 92 } // namespace cc |
OLD | NEW |