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 bool layers_always_allowed_lcd_text); | 73 bool layers_always_allowed_lcd_text); |
73 | 74 |
74 void ExecuteCalculateDrawProperties(LayerImpl* root_layer, | 75 void ExecuteCalculateDrawProperties(LayerImpl* root_layer, |
75 float device_scale_factor, | 76 float device_scale_factor, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 FakeLayerTreeHostClient client_; | 125 FakeLayerTreeHostClient client_; |
125 int render_surface_layer_list_count_; | 126 int render_surface_layer_list_count_; |
126 }; | 127 }; |
127 | 128 |
128 class LayerTreeHostCommonTest : public LayerTreeHostCommonTestBase, | 129 class LayerTreeHostCommonTest : public LayerTreeHostCommonTestBase, |
129 public testing::Test {}; | 130 public testing::Test {}; |
130 | 131 |
131 } // namespace cc | 132 } // namespace cc |
132 | 133 |
133 #endif // CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ | 134 #endif // CC_TEST_LAYER_TREE_HOST_COMMON_TEST_H_ |
OLD | NEW |