| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|    63       masks_to_bounds_(false), |    63       masks_to_bounds_(false), | 
|    64       contents_opaque_(false), |    64       contents_opaque_(false), | 
|    65       use_parent_backface_visibility_(false), |    65       use_parent_backface_visibility_(false), | 
|    66       use_local_transform_for_backface_visibility_(false), |    66       use_local_transform_for_backface_visibility_(false), | 
|    67       should_check_backface_visibility_(false), |    67       should_check_backface_visibility_(false), | 
|    68       draws_content_(false), |    68       draws_content_(false), | 
|    69       is_drawn_render_surface_layer_list_member_(false), |    69       is_drawn_render_surface_layer_list_member_(false), | 
|    70       was_ever_ready_since_last_transform_animation_(true), |    70       was_ever_ready_since_last_transform_animation_(true), | 
|    71       background_color_(0), |    71       background_color_(0), | 
|    72       safe_opaque_background_color_(0), |    72       safe_opaque_background_color_(0), | 
|    73       draw_blend_mode_(SkXfermode::kSrcOver_Mode), |    73       draw_blend_mode_(SkBlendMode::kSrcOver), | 
|    74       transform_tree_index_(TransformTree::kInvalidNodeId), |    74       transform_tree_index_(TransformTree::kInvalidNodeId), | 
|    75       effect_tree_index_(EffectTree::kInvalidNodeId), |    75       effect_tree_index_(EffectTree::kInvalidNodeId), | 
|    76       clip_tree_index_(ClipTree::kInvalidNodeId), |    76       clip_tree_index_(ClipTree::kInvalidNodeId), | 
|    77       scroll_tree_index_(ScrollTree::kInvalidNodeId), |    77       scroll_tree_index_(ScrollTree::kInvalidNodeId), | 
|    78       sorting_context_id_(0), |    78       sorting_context_id_(0), | 
|    79       current_draw_mode_(DRAW_MODE_NONE), |    79       current_draw_mode_(DRAW_MODE_NONE), | 
|    80       mutable_properties_(MutableProperty::kNone), |    80       mutable_properties_(MutableProperty::kNone), | 
|    81       debug_info_(nullptr), |    81       debug_info_(nullptr), | 
|    82       has_preferred_raster_bounds_(false), |    82       has_preferred_raster_bounds_(false), | 
|    83       has_will_change_transform_hint_(false), |    83       has_will_change_transform_hint_(false), | 
| (...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1099            .layer_transforms_should_scale_layer_contents) { |  1099            .layer_transforms_should_scale_layer_contents) { | 
|  1100     return default_scale; |  1100     return default_scale; | 
|  1101   } |  1101   } | 
|  1102  |  1102  | 
|  1103   gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( |  1103   gfx::Vector2dF transform_scales = MathUtil::ComputeTransform2dScaleComponents( | 
|  1104       ScreenSpaceTransform(), default_scale); |  1104       ScreenSpaceTransform(), default_scale); | 
|  1105   return std::max(transform_scales.x(), transform_scales.y()); |  1105   return std::max(transform_scales.x(), transform_scales.y()); | 
|  1106 } |  1106 } | 
|  1107  |  1107  | 
|  1108 }  // namespace cc |  1108 }  // namespace cc | 
| OLD | NEW |