| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/layers/layer_impl.h" | 5 #include "cc/layers/layer_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 layer->offset_to_transform_parent_ = offset_to_transform_parent_; | 323 layer->offset_to_transform_parent_ = offset_to_transform_parent_; |
| 324 layer->main_thread_scrolling_reasons_ = main_thread_scrolling_reasons_; | 324 layer->main_thread_scrolling_reasons_ = main_thread_scrolling_reasons_; |
| 325 layer->user_scrollable_horizontal_ = user_scrollable_horizontal_; | 325 layer->user_scrollable_horizontal_ = user_scrollable_horizontal_; |
| 326 layer->user_scrollable_vertical_ = user_scrollable_vertical_; | 326 layer->user_scrollable_vertical_ = user_scrollable_vertical_; |
| 327 layer->should_flatten_transform_from_property_tree_ = | 327 layer->should_flatten_transform_from_property_tree_ = |
| 328 should_flatten_transform_from_property_tree_; | 328 should_flatten_transform_from_property_tree_; |
| 329 layer->masks_to_bounds_ = masks_to_bounds_; | 329 layer->masks_to_bounds_ = masks_to_bounds_; |
| 330 layer->contents_opaque_ = contents_opaque_; | 330 layer->contents_opaque_ = contents_opaque_; |
| 331 layer->may_contain_video_ = may_contain_video_; | 331 layer->may_contain_video_ = may_contain_video_; |
| 332 layer->use_parent_backface_visibility_ = use_parent_backface_visibility_; | 332 layer->use_parent_backface_visibility_ = use_parent_backface_visibility_; |
| 333 layer->sticky_position_constraint_ = sticky_position_constraint_; |
| 333 layer->use_local_transform_for_backface_visibility_ = | 334 layer->use_local_transform_for_backface_visibility_ = |
| 334 use_local_transform_for_backface_visibility_; | 335 use_local_transform_for_backface_visibility_; |
| 335 layer->should_check_backface_visibility_ = should_check_backface_visibility_; | 336 layer->should_check_backface_visibility_ = should_check_backface_visibility_; |
| 336 layer->draws_content_ = draws_content_; | 337 layer->draws_content_ = draws_content_; |
| 337 layer->non_fast_scrollable_region_ = non_fast_scrollable_region_; | 338 layer->non_fast_scrollable_region_ = non_fast_scrollable_region_; |
| 338 layer->touch_event_handler_region_ = touch_event_handler_region_; | 339 layer->touch_event_handler_region_ = touch_event_handler_region_; |
| 339 layer->background_color_ = background_color_; | 340 layer->background_color_ = background_color_; |
| 340 layer->safe_opaque_background_color_ = safe_opaque_background_color_; | 341 layer->safe_opaque_background_color_ = safe_opaque_background_color_; |
| 341 layer->draw_blend_mode_ = draw_blend_mode_; | 342 layer->draw_blend_mode_ = draw_blend_mode_; |
| 342 layer->position_ = position_; | 343 layer->position_ = position_; |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1119 .layer_transforms_should_scale_layer_contents) { | 1120 .layer_transforms_should_scale_layer_contents) { |
| 1120 return default_scale; | 1121 return default_scale; |
| 1121 } | 1122 } |
| 1122 | 1123 |
| 1123 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( | 1124 gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( |
| 1124 ScreenSpaceTransform(), default_scale); | 1125 ScreenSpaceTransform(), default_scale); |
| 1125 return std::max(transform_scales.x(), transform_scales.y()); | 1126 return std::max(transform_scales.x(), transform_scales.y()); |
| 1126 } | 1127 } |
| 1127 | 1128 |
| 1128 } // namespace cc | 1129 } // namespace cc |
| OLD | NEW |