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> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "cc/layers/append_quads_data.h" | 11 #include "cc/layers/append_quads_data.h" |
12 #include "cc/layers/content_layer_client.h" | 12 #include "cc/layers/content_layer_client.h" |
13 #include "cc/layers/empty_content_layer_client.h" | 13 #include "cc/layers/empty_content_layer_client.h" |
14 #include "cc/layers/picture_layer_impl.h" | 14 #include "cc/layers/picture_layer_impl.h" |
15 #include "cc/playback/display_item_list_settings.h" | 15 #include "cc/playback/display_item_list_settings.h" |
16 #include "cc/proto/layer.pb.h" | 16 #include "cc/proto/layer.pb.h" |
17 #include "cc/test/fake_image_serialization_processor.h" | 17 #include "cc/test/fake_image_serialization_processor.h" |
18 #include "cc/test/fake_layer_tree_host.h" | 18 #include "cc/test/fake_layer_tree_host.h" |
19 #include "cc/test/fake_output_surface.h" | 19 #include "cc/test/fake_output_surface.h" |
20 #include "cc/test/fake_picture_layer.h" | 20 #include "cc/test/fake_picture_layer.h" |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 // Do a main frame, record the picture layers. The frame number has changed | 465 // Do a main frame, record the picture layers. The frame number has changed |
466 // non-monotonically. | 466 // non-monotonically. |
467 layer->SetNeedsDisplay(); | 467 layer->SetNeedsDisplay(); |
468 host2->Composite(base::TimeTicks::Now()); | 468 host2->Composite(base::TimeTicks::Now()); |
469 EXPECT_EQ(3, layer->update_count()); | 469 EXPECT_EQ(3, layer->update_count()); |
470 EXPECT_EQ(1, host2->source_frame_number()); | 470 EXPECT_EQ(1, host2->source_frame_number()); |
471 } | 471 } |
472 | 472 |
473 } // namespace | 473 } // namespace |
474 } // namespace cc | 474 } // namespace cc |
OLD | NEW |