OLD | NEW |
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/layer_tree_host_common.h" | 5 #include "cc/layer_tree_host_common.h" |
6 | 6 |
7 #include "cc/content_layer.h" | 7 #include "cc/content_layer.h" |
8 #include "cc/content_layer_client.h" | 8 #include "cc/content_layer_client.h" |
9 #include "cc/layer.h" | 9 #include "cc/layer.h" |
10 #include "cc/layer_animation_controller.h" | 10 #include "cc/layer_animation_controller.h" |
11 #include "cc/layer_impl.h" | 11 #include "cc/layer_impl.h" |
12 #include "cc/math_util.h" | 12 #include "cc/math_util.h" |
13 #include "cc/proxy.h" | 13 #include "cc/proxy.h" |
14 #include "cc/single_thread_proxy.h" | 14 #include "cc/single_thread_proxy.h" |
15 #include "cc/test/animation_test_common.h" | 15 #include "cc/test/animation_test_common.h" |
16 #include "cc/test/fake_impl_proxy.h" | 16 #include "cc/test/fake_impl_proxy.h" |
17 #include "cc/test/fake_layer_tree_host_impl.h" | 17 #include "cc/test/fake_layer_tree_host_impl.h" |
18 #include "cc/test/geometry_test_utils.h" | 18 #include "cc/test/geometry_test_utils.h" |
19 #include "cc/thread.h" | 19 #include "cc/thread.h" |
20 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 #include "ui/gfx/quad_f.h" | 22 #include "ui/gfx/quad_f.h" |
23 #include "ui/gfx/size_conversions.h" | 23 #include "ui/gfx/size_conversions.h" |
24 #include "ui/gfx/transform.h" | 24 #include "ui/gfx/transform.h" |
25 | 25 |
26 using namespace WebKitTests; | |
27 | |
28 namespace cc { | 26 namespace cc { |
29 namespace { | 27 namespace { |
30 | 28 |
31 template<typename LayerType> | 29 template<typename LayerType> |
32 void setLayerPropertiesForTestingInternal(LayerType* layer, const gfx::Transform
& transform, const gfx::Transform& sublayerTransform, const gfx::PointF& anchor,
const gfx::PointF& position, const gfx::Size& bounds, bool preserves3D) | 30 void setLayerPropertiesForTestingInternal(LayerType* layer, const gfx::Transform
& transform, const gfx::Transform& sublayerTransform, const gfx::PointF& anchor,
const gfx::PointF& position, const gfx::Size& bounds, bool preserves3D) |
33 { | 31 { |
34 layer->setTransform(transform); | 32 layer->setTransform(transform); |
35 layer->setSublayerTransform(sublayerTransform); | 33 layer->setSublayerTransform(sublayerTransform); |
36 layer->setAnchorPoint(anchor); | 34 layer->setAnchorPoint(anchor); |
37 layer->setPosition(position); | 35 layer->setPosition(position); |
(...skipping 4767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4805 EXPECT_EQ(m_canUseLCDText, m_grandChild->canUseLCDText()); | 4803 EXPECT_EQ(m_canUseLCDText, m_grandChild->canUseLCDText()); |
4806 } | 4804 } |
4807 | 4805 |
4808 INSTANTIATE_TEST_CASE_P(LayerTreeHostCommonTest, | 4806 INSTANTIATE_TEST_CASE_P(LayerTreeHostCommonTest, |
4809 LCDTextTest, | 4807 LCDTextTest, |
4810 testing::Combine(testing::Bool(), | 4808 testing::Combine(testing::Bool(), |
4811 testing::Bool())); | 4809 testing::Bool())); |
4812 | 4810 |
4813 } // namespace | 4811 } // namespace |
4814 } // namespace cc | 4812 } // namespace cc |
OLD | NEW |