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

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

Issue 1846043002: cc : Make CallFunctionForSubtree on impl use layer iterator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "cc/animation/layer_animation_controller.h" 15 #include "cc/animation/layer_animation_controller.h"
16 #include "cc/layers/layer.h" 16 #include "cc/layers/layer.h"
17 #include "cc/layers/layer_impl.h" 17 #include "cc/layers/layer_impl.h"
18 #include "cc/test/animation_test_common.h" 18 #include "cc/test/animation_test_common.h"
19 #include "cc/test/fake_impl_task_runner_provider.h" 19 #include "cc/test/fake_impl_task_runner_provider.h"
20 #include "cc/test/fake_layer_tree_host.h" 20 #include "cc/test/fake_layer_tree_host.h"
21 #include "cc/test/fake_rendering_stats_instrumentation.h" 21 #include "cc/test/fake_rendering_stats_instrumentation.h"
22 #include "cc/test/test_shared_bitmap_manager.h" 22 #include "cc/test/test_shared_bitmap_manager.h"
23 #include "cc/test/test_task_graph_runner.h" 23 #include "cc/test/test_task_graph_runner.h"
24 #include "cc/trees/layer_tree_host_common.h"
24 #include "cc/trees/single_thread_proxy.h" 25 #include "cc/trees/single_thread_proxy.h"
25 #include "cc/trees/task_runner_provider.h" 26 #include "cc/trees/task_runner_provider.h"
26 #include "testing/gtest/include/gtest/gtest.h" 27 #include "testing/gtest/include/gtest/gtest.h"
27 28
28 namespace cc { 29 namespace cc {
29 namespace { 30 namespace {
30 31
31 class MockLayerImpl : public LayerImpl { 32 class MockLayerImpl : public LayerImpl {
32 public: 33 public:
33 static scoped_ptr<MockLayerImpl> Create(LayerTreeImpl* tree_impl, 34 static scoped_ptr<MockLayerImpl> Create(LayerTreeImpl* tree_impl,
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 scroll_offset_map[scroll_layer->id()]->PullDeltaForMainThread(); 800 scroll_offset_map[scroll_layer->id()]->PullDeltaForMainThread();
800 scroll_offset_map[scroll_layer->id()]->SetCurrent(gfx::ScrollOffset(40, 50)); 801 scroll_offset_map[scroll_layer->id()]->SetCurrent(gfx::ScrollOffset(40, 50));
801 scroll_offset_map[scroll_layer->id()]->PushFromMainThread( 802 scroll_offset_map[scroll_layer->id()]->PushFromMainThread(
802 gfx::ScrollOffset(100, 100)); 803 gfx::ScrollOffset(100, 100));
803 scroll_offset_map[scroll_layer->id()]->PushPendingToActive(); 804 scroll_offset_map[scroll_layer->id()]->PushPendingToActive();
804 EXPECT_TRUE(is_equal(scroll_offset_map, scroll_tree.scroll_offset_map())); 805 EXPECT_TRUE(is_equal(scroll_offset_map, scroll_tree.scroll_offset_map()));
805 } 806 }
806 807
807 } // namespace 808 } // namespace
808 } // namespace cc 809 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698