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/layers/picture_layer.h" | 5 #include "cc/layers/picture_layer.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/thread_task_runner_handle.h" | 9 #include "base/thread_task_runner_handle.h" |
8 #include "cc/layers/content_layer_client.h" | 10 #include "cc/layers/content_layer_client.h" |
9 #include "cc/layers/layer_settings.h" | 11 #include "cc/layers/layer_settings.h" |
10 #include "cc/layers/picture_layer_impl.h" | 12 #include "cc/layers/picture_layer_impl.h" |
11 #include "cc/playback/display_item_list_settings.h" | 13 #include "cc/playback/display_item_list_settings.h" |
12 #include "cc/test/fake_display_list_recording_source.h" | 14 #include "cc/test/fake_display_list_recording_source.h" |
13 #include "cc/test/fake_layer_tree_host.h" | 15 #include "cc/test/fake_layer_tree_host.h" |
14 #include "cc/test/fake_picture_layer.h" | 16 #include "cc/test/fake_picture_layer.h" |
15 #include "cc/test/fake_picture_layer_impl.h" | 17 #include "cc/test/fake_picture_layer_impl.h" |
16 #include "cc/test/fake_proxy.h" | 18 #include "cc/test/fake_proxy.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Do a main frame, record the picture layers. The frame number has changed | 169 // Do a main frame, record the picture layers. The frame number has changed |
168 // non-monotonically. | 170 // non-monotonically. |
169 layer->SetNeedsDisplay(); | 171 layer->SetNeedsDisplay(); |
170 host2->Composite(base::TimeTicks::Now()); | 172 host2->Composite(base::TimeTicks::Now()); |
171 EXPECT_EQ(3, layer->update_count()); | 173 EXPECT_EQ(3, layer->update_count()); |
172 EXPECT_EQ(1, host2->source_frame_number()); | 174 EXPECT_EQ(1, host2->source_frame_number()); |
173 } | 175 } |
174 | 176 |
175 } // namespace | 177 } // namespace |
176 } // namespace cc | 178 } // namespace cc |
OLD | NEW |