| 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 <memory> |
| 7 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 8 #include "cc/test/fake_compositor_frame_sink.h" | 9 #include "cc/test/fake_compositor_frame_sink.h" |
| 9 #include "cc/test/fake_impl_task_runner_provider.h" | 10 #include "cc/test/fake_impl_task_runner_provider.h" |
| 10 #include "cc/test/fake_layer_tree_host_impl.h" | 11 #include "cc/test/fake_layer_tree_host_impl.h" |
| 11 #include "cc/test/test_shared_bitmap_manager.h" | 12 #include "cc/test/test_shared_bitmap_manager.h" |
| 12 #include "cc/test/test_task_graph_runner.h" | 13 #include "cc/test/test_task_graph_runner.h" |
| 13 #include "cc/trees/layer_tree_host_impl.h" | 14 #include "cc/trees/layer_tree_host_impl.h" |
| 14 #include "cc/trees/layer_tree_impl.h" | 15 #include "cc/trees/layer_tree_impl.h" |
| 15 #include "platform/graphics/CompositorElementId.h" | 16 #include "platform/graphics/CompositorElementId.h" |
| 16 #include "platform/graphics/CompositorMutableProperties.h" | 17 #include "platform/graphics/CompositorMutableProperties.h" |
| 17 #include "platform/graphics/CompositorMutableStateProvider.h" | 18 #include "platform/graphics/CompositorMutableStateProvider.h" |
| 18 #include "platform/graphics/CompositorMutation.h" | 19 #include "platform/graphics/CompositorMutation.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #include <memory> | |
| 21 | 21 |
| 22 namespace blink { | 22 namespace blink { |
| 23 | 23 |
| 24 using cc::FakeImplTaskRunnerProvider; | 24 using cc::FakeImplTaskRunnerProvider; |
| 25 using cc::FakeLayerTreeHostImpl; | 25 using cc::FakeLayerTreeHostImpl; |
| 26 using cc::FakeCompositorFrameSink; | 26 using cc::FakeCompositorFrameSink; |
| 27 using cc::LayerImpl; | 27 using cc::LayerImpl; |
| 28 using cc::LayerTreeSettings; | 28 using cc::LayerTreeSettings; |
| 29 using cc::TestTaskGraphRunner; | 29 using cc::TestTaskGraphRunner; |
| 30 using cc::TestSharedBitmapManager; | 30 using cc::TestSharedBitmapManager; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 EXPECT_TRUE(mutation.isScrollLeftMutated()); | 146 EXPECT_TRUE(mutation.isScrollLeftMutated()); |
| 147 EXPECT_TRUE(mutation.isScrollTopMutated()); | 147 EXPECT_TRUE(mutation.isScrollTopMutated()); |
| 148 | 148 |
| 149 EXPECT_EQ(0.5, mutation.opacity()); | 149 EXPECT_EQ(0.5, mutation.opacity()); |
| 150 EXPECT_EQ(zero.ToString(), gfx::Transform(mutation.transform()).ToString()); | 150 EXPECT_EQ(zero.ToString(), gfx::Transform(mutation.transform()).ToString()); |
| 151 EXPECT_EQ(1.0, mutation.scrollLeft()); | 151 EXPECT_EQ(1.0, mutation.scrollLeft()); |
| 152 EXPECT_EQ(1.0, mutation.scrollTop()); | 152 EXPECT_EQ(1.0, mutation.scrollTop()); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace blink | 155 } // namespace blink |
| OLD | NEW |