Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1478)

Side by Side Diff: cc/layers/layer_impl.cc

Issue 397443002: [not for review] Add Draw entries to window Performance Timeline Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git pull of third_party/WebKit Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/json/json_reader.h" 8 #include "base/json/json_reader.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "cc/animation/animation_registrar.h" 10 #include "cc/animation/animation_registrar.h"
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 layer->SetDrawsContent(DrawsContent()); 504 layer->SetDrawsContent(DrawsContent());
505 layer->SetHideLayerAndSubtree(hide_layer_and_subtree_); 505 layer->SetHideLayerAndSubtree(hide_layer_and_subtree_);
506 layer->SetFilters(filters()); 506 layer->SetFilters(filters());
507 layer->SetBackgroundFilters(background_filters()); 507 layer->SetBackgroundFilters(background_filters());
508 layer->SetMasksToBounds(masks_to_bounds_); 508 layer->SetMasksToBounds(masks_to_bounds_);
509 layer->SetShouldScrollOnMainThread(should_scroll_on_main_thread_); 509 layer->SetShouldScrollOnMainThread(should_scroll_on_main_thread_);
510 layer->SetHaveWheelEventHandlers(have_wheel_event_handlers_); 510 layer->SetHaveWheelEventHandlers(have_wheel_event_handlers_);
511 layer->SetHaveScrollEventHandlers(have_scroll_event_handlers_); 511 layer->SetHaveScrollEventHandlers(have_scroll_event_handlers_);
512 layer->SetNonFastScrollableRegion(non_fast_scrollable_region_); 512 layer->SetNonFastScrollableRegion(non_fast_scrollable_region_);
513 layer->SetTouchEventHandlerRegion(touch_event_handler_region_); 513 layer->SetTouchEventHandlerRegion(touch_event_handler_region_);
514 layer->SetDrawFrameRequestRects(draw_frame_request_rects_);
514 layer->SetContentsOpaque(contents_opaque_); 515 layer->SetContentsOpaque(contents_opaque_);
515 layer->SetOpacity(opacity_); 516 layer->SetOpacity(opacity_);
516 layer->SetBlendMode(blend_mode_); 517 layer->SetBlendMode(blend_mode_);
517 layer->SetIsRootForIsolatedGroup(is_root_for_isolated_group_); 518 layer->SetIsRootForIsolatedGroup(is_root_for_isolated_group_);
518 layer->SetPosition(position_); 519 layer->SetPosition(position_);
519 layer->SetIsContainerForFixedPositionLayers( 520 layer->SetIsContainerForFixedPositionLayers(
520 is_container_for_fixed_position_layers_); 521 is_container_for_fixed_position_layers_);
521 layer->SetPositionConstraint(position_constraint_); 522 layer->SetPositionConstraint(position_constraint_);
522 layer->SetShouldFlattenTransform(should_flatten_transform_); 523 layer->SetShouldFlattenTransform(should_flatten_transform_);
523 layer->SetUseParentBackfaceVisibility(use_parent_backface_visibility_); 524 layer->SetUseParentBackfaceVisibility(use_parent_backface_visibility_);
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 } 1497 }
1497 1498
1498 void LayerImpl::NotifyAnimationFinished( 1499 void LayerImpl::NotifyAnimationFinished(
1499 base::TimeTicks monotonic_time, 1500 base::TimeTicks monotonic_time,
1500 Animation::TargetProperty target_property) { 1501 Animation::TargetProperty target_property) {
1501 if (target_property == Animation::ScrollOffset) 1502 if (target_property == Animation::ScrollOffset)
1502 layer_tree_impl_->InputScrollAnimationFinished(); 1503 layer_tree_impl_->InputScrollAnimationFinished();
1503 } 1504 }
1504 1505
1505 } // namespace cc 1506 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698