| 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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 float page_scale_factor() const { return page_scale_factor_; } | 220 float page_scale_factor() const { return page_scale_factor_; } |
| 221 | 221 |
| 222 void set_device_scale_factor(float device_scale_factor) { | 222 void set_device_scale_factor(float device_scale_factor) { |
| 223 device_scale_factor_ = device_scale_factor; | 223 device_scale_factor_ = device_scale_factor; |
| 224 } | 224 } |
| 225 float device_scale_factor() const { return device_scale_factor_; } | 225 float device_scale_factor() const { return device_scale_factor_; } |
| 226 | 226 |
| 227 void SetDeviceTransform(const gfx::Transform& transform, | 227 void SetDeviceTransform(const gfx::Transform& transform, |
| 228 gfx::PointF root_position); | 228 gfx::PointF root_position); |
| 229 void SetDeviceTransformScaleFactor(const gfx::Transform& transform); | 229 void SetDeviceTransformScaleFactor(const gfx::Transform& transform); |
| 230 void SetScreenSpaceScale(float device_scale_factor, |
| 231 float page_scale_factor_for_root, |
| 232 gfx::Transform device_transform); |
| 233 |
| 230 float device_transform_scale_factor() const { | 234 float device_transform_scale_factor() const { |
| 231 return device_transform_scale_factor_; | 235 return device_transform_scale_factor_; |
| 232 } | 236 } |
| 233 | 237 |
| 234 void UpdateInnerViewportContainerBoundsDelta(); | 238 void UpdateInnerViewportContainerBoundsDelta(); |
| 235 | 239 |
| 236 void UpdateOuterViewportContainerBoundsDelta(); | 240 void UpdateOuterViewportContainerBoundsDelta(); |
| 237 | 241 |
| 238 void AddNodeAffectedByInnerViewportBoundsDelta(int node_id); | 242 void AddNodeAffectedByInnerViewportBoundsDelta(int node_id); |
| 239 void AddNodeAffectedByOuterViewportBoundsDelta(int node_id); | 243 void AddNodeAffectedByOuterViewportBoundsDelta(int node_id); |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 668 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; | 672 DrawTransforms& GetDrawTransforms(int transform_id, int effect_id) const; |
| 669 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, | 673 DrawTransformData& FetchDrawTransformsDataFromCache(int transform_id, |
| 670 int effect_id) const; | 674 int effect_id) const; |
| 671 | 675 |
| 672 PropertyTreesCachedData cached_data_; | 676 PropertyTreesCachedData cached_data_; |
| 673 }; | 677 }; |
| 674 | 678 |
| 675 } // namespace cc | 679 } // namespace cc |
| 676 | 680 |
| 677 #endif // CC_TREES_PROPERTY_TREE_H_ | 681 #endif // CC_TREES_PROPERTY_TREE_H_ |
| OLD | NEW |