| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/tree_synchronizer.h" | 5 #include "cc/trees/tree_synchronizer.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/format_macros.h" | 13 #include "base/format_macros.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
| 16 #include "cc/animation/layer_animation_controller.h" | |
| 17 #include "cc/layers/layer.h" | 16 #include "cc/layers/layer.h" |
| 18 #include "cc/layers/layer_impl.h" | 17 #include "cc/layers/layer_impl.h" |
| 19 #include "cc/test/animation_test_common.h" | 18 #include "cc/test/animation_test_common.h" |
| 20 #include "cc/test/fake_impl_task_runner_provider.h" | 19 #include "cc/test/fake_impl_task_runner_provider.h" |
| 21 #include "cc/test/fake_layer_tree_host.h" | 20 #include "cc/test/fake_layer_tree_host.h" |
| 22 #include "cc/test/fake_rendering_stats_instrumentation.h" | 21 #include "cc/test/fake_rendering_stats_instrumentation.h" |
| 23 #include "cc/test/test_shared_bitmap_manager.h" | 22 #include "cc/test/test_shared_bitmap_manager.h" |
| 24 #include "cc/test/test_task_graph_runner.h" | 23 #include "cc/test/test_task_graph_runner.h" |
| 25 #include "cc/trees/layer_tree_host_common.h" | 24 #include "cc/trees/layer_tree_host_common.h" |
| 26 #include "cc/trees/single_thread_proxy.h" | 25 #include "cc/trees/single_thread_proxy.h" |
| (...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 802 scroll_offset_map[scroll_layer->id()]->PullDeltaForMainThread(); | 801 scroll_offset_map[scroll_layer->id()]->PullDeltaForMainThread(); |
| 803 scroll_offset_map[scroll_layer->id()]->SetCurrent(gfx::ScrollOffset(40, 50)); | 802 scroll_offset_map[scroll_layer->id()]->SetCurrent(gfx::ScrollOffset(40, 50)); |
| 804 scroll_offset_map[scroll_layer->id()]->PushFromMainThread( | 803 scroll_offset_map[scroll_layer->id()]->PushFromMainThread( |
| 805 gfx::ScrollOffset(100, 100)); | 804 gfx::ScrollOffset(100, 100)); |
| 806 scroll_offset_map[scroll_layer->id()]->PushPendingToActive(); | 805 scroll_offset_map[scroll_layer->id()]->PushPendingToActive(); |
| 807 EXPECT_TRUE(is_equal(scroll_offset_map, scroll_tree.scroll_offset_map())); | 806 EXPECT_TRUE(is_equal(scroll_offset_map, scroll_tree.scroll_offset_map())); |
| 808 } | 807 } |
| 809 | 808 |
| 810 } // namespace | 809 } // namespace |
| 811 } // namespace cc | 810 } // namespace cc |
| OLD | NEW |