OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "platform/graphics/compositing/PaintArtifactCompositor.h" | 5 #include "platform/graphics/compositing/PaintArtifactCompositor.h" |
6 | 6 |
7 #include "base/test/test_simple_task_runner.h" | 7 #include "base/test/test_simple_task_runner.h" |
8 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
9 #include "cc/layers/layer.h" | 9 #include "cc/layers/layer.h" |
10 #include "cc/test/fake_compositor_frame_sink.h" | 10 #include "cc/test/fake_compositor_frame_sink.h" |
11 #include "cc/test/geometry_test_utils.h" | 11 #include "cc/test/geometry_test_utils.h" |
12 #include "cc/trees/clip_node.h" | 12 #include "cc/trees/clip_node.h" |
13 #include "cc/trees/effect_node.h" | 13 #include "cc/trees/effect_node.h" |
14 #include "cc/trees/layer_tree_host.h" | 14 #include "cc/trees/layer_tree_host.h" |
| 15 #include "cc/trees/layer_tree_settings.h" |
15 #include "cc/trees/scroll_node.h" | 16 #include "cc/trees/scroll_node.h" |
16 #include "cc/trees/transform_node.h" | 17 #include "cc/trees/transform_node.h" |
17 #include "platform/RuntimeEnabledFeatures.h" | 18 #include "platform/RuntimeEnabledFeatures.h" |
18 #include "platform/graphics/paint/EffectPaintPropertyNode.h" | 19 #include "platform/graphics/paint/EffectPaintPropertyNode.h" |
19 #include "platform/graphics/paint/PaintArtifact.h" | 20 #include "platform/graphics/paint/PaintArtifact.h" |
20 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" | 21 #include "platform/graphics/paint/ScrollPaintPropertyNode.h" |
21 #include "platform/testing/PictureMatchers.h" | 22 #include "platform/testing/PictureMatchers.h" |
22 #include "platform/testing/TestPaintArtifact.h" | 23 #include "platform/testing/TestPaintArtifact.h" |
23 #include "platform/testing/WebLayerTreeViewImplForTesting.h" | 24 #include "platform/testing/WebLayerTreeViewImplForTesting.h" |
24 #include "testing/gmock/include/gmock/gmock.h" | 25 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 EXPECT_TRUE(transformNodeA.local.IsIdentity()); | 612 EXPECT_TRUE(transformNodeA.local.IsIdentity()); |
612 const cc::TransformNode& transformNodeB = *transformTree.Node(scrollNodeB.tr
ansform_id); | 613 const cc::TransformNode& transformNodeB = *transformTree.Node(scrollNodeB.tr
ansform_id); |
613 EXPECT_TRUE(transformNodeB.local.IsIdentity()); | 614 EXPECT_TRUE(transformNodeB.local.IsIdentity()); |
614 | 615 |
615 EXPECT_EQ(gfx::ScrollOffset(-11, -13), scrollTree.current_scroll_offset(cont
entLayerAt(0)->id())); | 616 EXPECT_EQ(gfx::ScrollOffset(-11, -13), scrollTree.current_scroll_offset(cont
entLayerAt(0)->id())); |
616 EXPECT_EQ(gfx::ScrollOffset(-37, -41), scrollTree.current_scroll_offset(cont
entLayerAt(1)->id())); | 617 EXPECT_EQ(gfx::ScrollOffset(-37, -41), scrollTree.current_scroll_offset(cont
entLayerAt(1)->id())); |
617 } | 618 } |
618 | 619 |
619 } // namespace | 620 } // namespace |
620 } // namespace blink | 621 } // namespace blink |
OLD | NEW |