OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ | 5 #ifndef CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ |
6 #define CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ | 6 #define CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 const gfx::Size& bounds, | 55 const gfx::Size& bounds, |
56 bool flatten_transform, | 56 bool flatten_transform, |
57 bool is_3d_sorted); | 57 bool is_3d_sorted); |
58 | 58 |
59 void SetLayerPropertiesForTesting(LayerImpl* layer, | 59 void SetLayerPropertiesForTesting(LayerImpl* layer, |
60 const gfx::Transform& transform, | 60 const gfx::Transform& transform, |
61 const gfx::Point3F& transform_origin, | 61 const gfx::Point3F& transform_origin, |
62 const gfx::PointF& position, | 62 const gfx::PointF& position, |
63 const gfx::Size& bounds, | 63 const gfx::Size& bounds, |
64 bool flatten_transform, | 64 bool flatten_transform, |
65 bool is_3d_sorted); | 65 bool is_3d_sorted, |
| 66 bool create_render_surface); |
66 | 67 |
67 void ExecuteCalculateDrawProperties(Layer* root_layer, | 68 void ExecuteCalculateDrawProperties(Layer* root_layer, |
68 float device_scale_factor, | 69 float device_scale_factor, |
69 float page_scale_factor, | 70 float page_scale_factor, |
70 Layer* page_scale_application_layer, | 71 Layer* page_scale_application_layer, |
71 bool can_use_lcd_text); | 72 bool can_use_lcd_text); |
72 | 73 |
73 void ExecuteCalculateDrawProperties(LayerImpl* root_layer, | 74 void ExecuteCalculateDrawProperties(LayerImpl* root_layer, |
74 float device_scale_factor, | 75 float device_scale_factor, |
75 float page_scale_factor, | 76 float page_scale_factor, |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 FakeLayerTreeHostClient client_; | 128 FakeLayerTreeHostClient client_; |
128 int render_surface_layer_list_count_; | 129 int render_surface_layer_list_count_; |
129 }; | 130 }; |
130 | 131 |
131 class LayerTreeHostCommonTest : public LayerTreeHostCommonTestBase, | 132 class LayerTreeHostCommonTest : public LayerTreeHostCommonTestBase, |
132 public testing::Test {}; | 133 public testing::Test {}; |
133 | 134 |
134 } // namespace cc | 135 } // namespace cc |
135 | 136 |
136 #endif // CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ | 137 #endif // CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ |
OLD | NEW |