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/CompositorMutableState.h" | 5 #include "platform/graphics/CompositorMutableState.h" |
6 | 6 |
7 #include "base/message_loop/message_loop.h" | 7 #include "base/message_loop/message_loop.h" |
8 #include "cc/test/fake_impl_task_runner_provider.h" | 8 #include "cc/test/fake_impl_task_runner_provider.h" |
9 #include "cc/test/fake_layer_tree_host_impl.h" | 9 #include "cc/test/fake_layer_tree_host_impl.h" |
10 #include "cc/test/fake_output_surface.h" | 10 #include "cc/test/fake_output_surface.h" |
11 #include "cc/test/test_shared_bitmap_manager.h" | 11 #include "cc/test/test_shared_bitmap_manager.h" |
12 #include "cc/test/test_task_graph_runner.h" | 12 #include "cc/test/test_task_graph_runner.h" |
13 #include "cc/trees/layer_tree_host_impl.h" | 13 #include "cc/trees/layer_tree_host_impl.h" |
14 #include "cc/trees/layer_tree_impl.h" | 14 #include "cc/trees/layer_tree_impl.h" |
15 #include "platform/graphics/CompositorMutableProperties.h" | 15 #include "platform/graphics/CompositorMutableProperties.h" |
16 #include "platform/graphics/CompositorMutableStateProvider.h" | 16 #include "platform/graphics/CompositorMutableStateProvider.h" |
17 #include "platform/graphics/CompositorMutation.h" | 17 #include "platform/graphics/CompositorMutation.h" |
18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
19 | |
20 #include <memory> | 19 #include <memory> |
21 | 20 |
22 namespace blink { | 21 namespace blink { |
23 | 22 |
24 using cc::FakeImplTaskRunnerProvider; | 23 using cc::FakeImplTaskRunnerProvider; |
25 using cc::FakeLayerTreeHostImpl; | 24 using cc::FakeLayerTreeHostImpl; |
26 using cc::FakeOutputSurface; | 25 using cc::FakeOutputSurface; |
27 using cc::LayerImpl; | 26 using cc::LayerImpl; |
28 using cc::LayerTreeSettings; | 27 using cc::LayerTreeSettings; |
29 using cc::OutputSurface; | 28 using cc::OutputSurface; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 EXPECT_TRUE(mutation.isScrollLeftMutated()); | 157 EXPECT_TRUE(mutation.isScrollLeftMutated()); |
159 EXPECT_TRUE(mutation.isScrollTopMutated()); | 158 EXPECT_TRUE(mutation.isScrollTopMutated()); |
160 | 159 |
161 EXPECT_EQ(0.5, mutation.opacity()); | 160 EXPECT_EQ(0.5, mutation.opacity()); |
162 EXPECT_EQ(zero.ToString(), gfx::Transform(mutation.transform()).ToString()); | 161 EXPECT_EQ(zero.ToString(), gfx::Transform(mutation.transform()).ToString()); |
163 EXPECT_EQ(1.0, mutation.scrollLeft()); | 162 EXPECT_EQ(1.0, mutation.scrollLeft()); |
164 EXPECT_EQ(1.0, mutation.scrollTop()); | 163 EXPECT_EQ(1.0, mutation.scrollTop()); |
165 } | 164 } |
166 | 165 |
167 } // namespace blink | 166 } // namespace blink |
OLD | NEW |