| 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 |
| 19 #include <memory> | 20 #include <memory> |
| 20 | 21 |
| 21 namespace blink { | 22 namespace blink { |
| 22 | 23 |
| 23 using cc::FakeImplTaskRunnerProvider; | 24 using cc::FakeImplTaskRunnerProvider; |
| 24 using cc::FakeLayerTreeHostImpl; | 25 using cc::FakeLayerTreeHostImpl; |
| 25 using cc::FakeOutputSurface; | 26 using cc::FakeOutputSurface; |
| 26 using cc::LayerImpl; | 27 using cc::LayerImpl; |
| 27 using cc::LayerTreeSettings; | 28 using cc::LayerTreeSettings; |
| 28 using cc::OutputSurface; | 29 using cc::OutputSurface; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 EXPECT_TRUE(mutation.isScrollLeftMutated()); | 158 EXPECT_TRUE(mutation.isScrollLeftMutated()); |
| 158 EXPECT_TRUE(mutation.isScrollTopMutated()); | 159 EXPECT_TRUE(mutation.isScrollTopMutated()); |
| 159 | 160 |
| 160 EXPECT_EQ(0.5, mutation.opacity()); | 161 EXPECT_EQ(0.5, mutation.opacity()); |
| 161 EXPECT_EQ(zero.ToString(), gfx::Transform(mutation.transform()).ToString()); | 162 EXPECT_EQ(zero.ToString(), gfx::Transform(mutation.transform()).ToString()); |
| 162 EXPECT_EQ(1.0, mutation.scrollLeft()); | 163 EXPECT_EQ(1.0, mutation.scrollLeft()); |
| 163 EXPECT_EQ(1.0, mutation.scrollTop()); | 164 EXPECT_EQ(1.0, mutation.scrollTop()); |
| 164 } | 165 } |
| 165 | 166 |
| 166 } // namespace blink | 167 } // namespace blink |
| OLD | NEW |