Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: cc/trees/tree_synchronizer_unittest.cc

Issue 1904653002: CC Animation: Merge LayerAnimationController into ElementAnimations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor AnimationHost::RegisterPlayerForLayer. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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" 16 #include "cc/animation/element_animations.h"
17 #include "cc/layers/layer.h" 17 #include "cc/layers/layer.h"
18 #include "cc/layers/layer_impl.h" 18 #include "cc/layers/layer_impl.h"
19 #include "cc/test/animation_test_common.h" 19 #include "cc/test/animation_test_common.h"
20 #include "cc/test/fake_impl_task_runner_provider.h" 20 #include "cc/test/fake_impl_task_runner_provider.h"
21 #include "cc/test/fake_layer_tree_host.h" 21 #include "cc/test/fake_layer_tree_host.h"
22 #include "cc/test/fake_rendering_stats_instrumentation.h" 22 #include "cc/test/fake_rendering_stats_instrumentation.h"
23 #include "cc/test/test_shared_bitmap_manager.h" 23 #include "cc/test/test_shared_bitmap_manager.h"
24 #include "cc/test/test_task_graph_runner.h" 24 #include "cc/test/test_task_graph_runner.h"
25 #include "cc/trees/layer_tree_host_common.h" 25 #include "cc/trees/layer_tree_host_common.h"
26 #include "cc/trees/single_thread_proxy.h" 26 #include "cc/trees/single_thread_proxy.h"
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 scroll_offset_map[scroll_layer->id()]->PullDeltaForMainThread(); 802 scroll_offset_map[scroll_layer->id()]->PullDeltaForMainThread();
803 scroll_offset_map[scroll_layer->id()]->SetCurrent(gfx::ScrollOffset(40, 50)); 803 scroll_offset_map[scroll_layer->id()]->SetCurrent(gfx::ScrollOffset(40, 50));
804 scroll_offset_map[scroll_layer->id()]->PushFromMainThread( 804 scroll_offset_map[scroll_layer->id()]->PushFromMainThread(
805 gfx::ScrollOffset(100, 100)); 805 gfx::ScrollOffset(100, 100));
806 scroll_offset_map[scroll_layer->id()]->PushPendingToActive(); 806 scroll_offset_map[scroll_layer->id()]->PushPendingToActive();
807 EXPECT_TRUE(is_equal(scroll_offset_map, scroll_tree.scroll_offset_map())); 807 EXPECT_TRUE(is_equal(scroll_offset_map, scroll_tree.scroll_offset_map()));
808 } 808 }
809 809
810 } // namespace 810 } // namespace
811 } // namespace cc 811 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698