| 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 "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "base/debug/trace_event_argument.h" | 8 #include "base/debug/trace_event_argument.h" |
| 9 #include "base/json/json_reader.h" | 9 #include "base/json/json_reader.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 layer->SetDrawsContent(DrawsContent()); | 514 layer->SetDrawsContent(DrawsContent()); |
| 515 layer->SetHideLayerAndSubtree(hide_layer_and_subtree_); | 515 layer->SetHideLayerAndSubtree(hide_layer_and_subtree_); |
| 516 layer->SetFilters(filters()); | 516 layer->SetFilters(filters()); |
| 517 layer->SetBackgroundFilters(background_filters()); | 517 layer->SetBackgroundFilters(background_filters()); |
| 518 layer->SetMasksToBounds(masks_to_bounds_); | 518 layer->SetMasksToBounds(masks_to_bounds_); |
| 519 layer->SetShouldScrollOnMainThread(should_scroll_on_main_thread_); | 519 layer->SetShouldScrollOnMainThread(should_scroll_on_main_thread_); |
| 520 layer->SetHaveWheelEventHandlers(have_wheel_event_handlers_); | 520 layer->SetHaveWheelEventHandlers(have_wheel_event_handlers_); |
| 521 layer->SetHaveScrollEventHandlers(have_scroll_event_handlers_); | 521 layer->SetHaveScrollEventHandlers(have_scroll_event_handlers_); |
| 522 layer->SetNonFastScrollableRegion(non_fast_scrollable_region_); | 522 layer->SetNonFastScrollableRegion(non_fast_scrollable_region_); |
| 523 layer->SetTouchEventHandlerRegion(touch_event_handler_region_); | 523 layer->SetTouchEventHandlerRegion(touch_event_handler_region_); |
| 524 layer->SetSmoothnessTimingRequests(smoothness_timing_requests_); |
| 524 layer->SetContentsOpaque(contents_opaque_); | 525 layer->SetContentsOpaque(contents_opaque_); |
| 525 layer->SetOpacity(opacity_); | 526 layer->SetOpacity(opacity_); |
| 526 layer->SetBlendMode(blend_mode_); | 527 layer->SetBlendMode(blend_mode_); |
| 527 layer->SetIsRootForIsolatedGroup(is_root_for_isolated_group_); | 528 layer->SetIsRootForIsolatedGroup(is_root_for_isolated_group_); |
| 528 layer->SetPosition(position_); | 529 layer->SetPosition(position_); |
| 529 layer->SetIsContainerForFixedPositionLayers( | 530 layer->SetIsContainerForFixedPositionLayers( |
| 530 is_container_for_fixed_position_layers_); | 531 is_container_for_fixed_position_layers_); |
| 531 layer->SetPositionConstraint(position_constraint_); | 532 layer->SetPositionConstraint(position_constraint_); |
| 532 layer->SetShouldFlattenTransform(should_flatten_transform_); | 533 layer->SetShouldFlattenTransform(should_flatten_transform_); |
| 533 layer->SetUseParentBackfaceVisibility(use_parent_backface_visibility_); | 534 layer->SetUseParentBackfaceVisibility(use_parent_backface_visibility_); |
| (...skipping 1004 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1538 } | 1539 } |
| 1539 | 1540 |
| 1540 void LayerImpl::NotifyAnimationFinished( | 1541 void LayerImpl::NotifyAnimationFinished( |
| 1541 base::TimeTicks monotonic_time, | 1542 base::TimeTicks monotonic_time, |
| 1542 Animation::TargetProperty target_property) { | 1543 Animation::TargetProperty target_property) { |
| 1543 if (target_property == Animation::ScrollOffset) | 1544 if (target_property == Animation::ScrollOffset) |
| 1544 layer_tree_impl_->InputScrollAnimationFinished(); | 1545 layer_tree_impl_->InputScrollAnimationFinished(); |
| 1545 } | 1546 } |
| 1546 | 1547 |
| 1547 } // namespace cc | 1548 } // namespace cc |
| OLD | NEW |