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/trees/layer_tree_host_common.h" | 5 #include "cc/trees/layer_tree_host_common.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "cc/animation/layer_animation_controller.h" | 9 #include "cc/animation/layer_animation_controller.h" |
10 #include "cc/animation/transform_operations.h" | 10 #include "cc/animation/transform_operations.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "cc/test/fake_impl_proxy.h" | 23 #include "cc/test/fake_impl_proxy.h" |
24 #include "cc/test/fake_layer_tree_host.h" | 24 #include "cc/test/fake_layer_tree_host.h" |
25 #include "cc/test/fake_layer_tree_host_impl.h" | 25 #include "cc/test/fake_layer_tree_host_impl.h" |
26 #include "cc/test/geometry_test_utils.h" | 26 #include "cc/test/geometry_test_utils.h" |
27 #include "cc/test/layer_tree_host_common_test.h" | 27 #include "cc/test/layer_tree_host_common_test.h" |
28 #include "cc/trees/layer_tree_impl.h" | 28 #include "cc/trees/layer_tree_impl.h" |
29 #include "cc/trees/proxy.h" | 29 #include "cc/trees/proxy.h" |
30 #include "cc/trees/single_thread_proxy.h" | 30 #include "cc/trees/single_thread_proxy.h" |
31 #include "testing/gmock/include/gmock/gmock.h" | 31 #include "testing/gmock/include/gmock/gmock.h" |
32 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
33 #include "ui/gfx/quad_f.h" | 33 #include "ui/gfx/geometry/quad_f.h" |
34 #include "ui/gfx/transform.h" | 34 #include "ui/gfx/transform.h" |
35 | 35 |
36 namespace cc { | 36 namespace cc { |
37 namespace { | 37 namespace { |
38 | 38 |
39 class LayerWithForcedDrawsContent : public Layer { | 39 class LayerWithForcedDrawsContent : public Layer { |
40 public: | 40 public: |
41 LayerWithForcedDrawsContent() : Layer(), last_device_scale_factor_(0.f) {} | 41 LayerWithForcedDrawsContent() : Layer(), last_device_scale_factor_(0.f) {} |
42 | 42 |
43 virtual bool DrawsContent() const OVERRIDE; | 43 virtual bool DrawsContent() const OVERRIDE; |
(...skipping 8549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8593 EXPECT_FLOAT_EQ(4.f, | 8593 EXPECT_FLOAT_EQ(4.f, |
8594 child1_layer->replica_layer() | 8594 child1_layer->replica_layer() |
8595 ->mask_layer() | 8595 ->mask_layer() |
8596 ->draw_properties() | 8596 ->draw_properties() |
8597 .device_scale_factor); | 8597 .device_scale_factor); |
8598 EXPECT_FLOAT_EQ(4.f, child2_layer->draw_properties().device_scale_factor); | 8598 EXPECT_FLOAT_EQ(4.f, child2_layer->draw_properties().device_scale_factor); |
8599 } | 8599 } |
8600 | 8600 |
8601 } // namespace | 8601 } // namespace |
8602 } // namespace cc | 8602 } // namespace cc |
OLD | NEW |