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_TREES_PROPERTY_TREE_H_ | 5 #ifndef CC_TREES_PROPERTY_TREE_H_ |
6 #define CC_TREES_PROPERTY_TREE_H_ | 6 #define CC_TREES_PROPERTY_TREE_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 void set_page_scale_factor(float page_scale_factor) { | 214 void set_page_scale_factor(float page_scale_factor) { |
215 page_scale_factor_ = page_scale_factor; | 215 page_scale_factor_ = page_scale_factor; |
216 } | 216 } |
217 float page_scale_factor() const { return page_scale_factor_; } | 217 float page_scale_factor() const { return page_scale_factor_; } |
218 | 218 |
219 void set_device_scale_factor(float device_scale_factor) { | 219 void set_device_scale_factor(float device_scale_factor) { |
220 device_scale_factor_ = device_scale_factor; | 220 device_scale_factor_ = device_scale_factor; |
221 } | 221 } |
222 float device_scale_factor() const { return device_scale_factor_; } | 222 float device_scale_factor() const { return device_scale_factor_; } |
223 | 223 |
224 void SetDeviceTransform(const gfx::Transform& transform, | 224 void SetDeviceTransform(const gfx::Transform& transform, |
jaydasika
2016/10/11 21:54:20
This needs to be renamed. SetContentsRootPostLocal
| |
225 gfx::PointF root_position); | 225 gfx::PointF root_position); |
226 void SetDeviceTransformScaleFactor(const gfx::Transform& transform); | 226 void SetDeviceTransformScaleFactor(const gfx::Transform& transform); |
227 void SetScreenSpaceScale(float device_scale_factor, | |
228 float page_scale_factor_for_root, | |
229 gfx::Transform device_transform); | |
230 | |
227 float device_transform_scale_factor() const { | 231 float device_transform_scale_factor() const { |
228 return device_transform_scale_factor_; | 232 return device_transform_scale_factor_; |
229 } | 233 } |
230 | 234 |
231 void UpdateInnerViewportContainerBoundsDelta(); | 235 void UpdateInnerViewportContainerBoundsDelta(); |
232 | 236 |
233 void UpdateOuterViewportContainerBoundsDelta(); | 237 void UpdateOuterViewportContainerBoundsDelta(); |
234 | 238 |
235 void AddNodeAffectedByInnerViewportBoundsDelta(int node_id); | 239 void AddNodeAffectedByInnerViewportBoundsDelta(int node_id); |
236 void AddNodeAffectedByOuterViewportBoundsDelta(int node_id); | 240 void AddNodeAffectedByOuterViewportBoundsDelta(int node_id); |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
643 gfx::Vector2dF inner_viewport_container_bounds_delta_; | 647 gfx::Vector2dF inner_viewport_container_bounds_delta_; |
644 gfx::Vector2dF outer_viewport_container_bounds_delta_; | 648 gfx::Vector2dF outer_viewport_container_bounds_delta_; |
645 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; | 649 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; |
646 | 650 |
647 PropertyTreesCachedData cached_data_; | 651 PropertyTreesCachedData cached_data_; |
648 }; | 652 }; |
649 | 653 |
650 } // namespace cc | 654 } // namespace cc |
651 | 655 |
652 #endif // CC_TREES_PROPERTY_TREE_H_ | 656 #endif // CC_TREES_PROPERTY_TREE_H_ |
OLD | NEW |