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

Side by Side Diff: cc/trees/layer_tree_host.cc

Issue 1697613002: cc :: Move tracking of layer_property_changed to main thread (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 DCHECK(host_impl->animation_host()); 474 DCHECK(host_impl->animation_host());
475 animation_host_->PushPropertiesTo(host_impl->animation_host()); 475 animation_host_->PushPropertiesTo(host_impl->animation_host());
476 } 476 }
477 } 477 }
478 478
479 // This must happen after synchronizing property trees and after push 479 // This must happen after synchronizing property trees and after push
480 // properties, which updates property tree indices. 480 // properties, which updates property tree indices.
481 sync_tree->UpdatePropertyTreeScrollingAndAnimationFromMainThread(); 481 sync_tree->UpdatePropertyTreeScrollingAndAnimationFromMainThread();
482 482
483 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); 483 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl);
484 property_trees_.transform_tree.ResetChangeTracking();
484 } 485 }
485 486
486 void LayerTreeHost::WillCommit() { 487 void LayerTreeHost::WillCommit() {
487 OnCommitForSwapPromises(); 488 OnCommitForSwapPromises();
488 client_->WillCommit(); 489 client_->WillCommit();
489 } 490 }
490 491
491 void LayerTreeHost::UpdateHudLayer() { 492 void LayerTreeHost::UpdateHudLayer() {
492 if (debug_state_.ShowHudInfo()) { 493 if (debug_state_.ShowHudInfo()) {
493 if (!hud_layer_.get()) { 494 if (!hud_layer_.get()) {
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 LayerTreeHostCommon::CallFunctionForSubtree( 1589 LayerTreeHostCommon::CallFunctionForSubtree(
1589 root_layer(), [seq_num](Layer* layer) { 1590 root_layer(), [seq_num](Layer* layer) {
1590 layer->set_property_tree_sequence_number(seq_num); 1591 layer->set_property_tree_sequence_number(seq_num);
1591 }); 1592 });
1592 1593
1593 surface_id_namespace_ = proto.surface_id_namespace(); 1594 surface_id_namespace_ = proto.surface_id_namespace();
1594 next_surface_sequence_ = proto.next_surface_sequence(); 1595 next_surface_sequence_ = proto.next_surface_sequence();
1595 } 1596 }
1596 1597
1597 } // namespace cc 1598 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/damage_tracker_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698