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

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

Issue 1995133002: cc : Delete ResetFlags in property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 529
530 // This must happen after synchronizing property trees and after push 530 // This must happen after synchronizing property trees and after push
531 // properties, which updates property tree indices. 531 // properties, which updates property tree indices.
532 sync_tree->UpdatePropertyTreeScrollingAndAnimationFromMainThread(); 532 sync_tree->UpdatePropertyTreeScrollingAndAnimationFromMainThread();
533 533
534 // This must happen after synchronizing property trees and after pushing 534 // This must happen after synchronizing property trees and after pushing
535 // properties, which updates the clobber_active_value flag. 535 // properties, which updates the clobber_active_value flag.
536 sync_tree->UpdatePropertyTreeScrollOffset(&property_trees_); 536 sync_tree->UpdatePropertyTreeScrollOffset(&property_trees_);
537 537
538 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl); 538 micro_benchmark_controller_.ScheduleImplBenchmarks(host_impl);
539 property_trees_.ResetAllChangeTracking(PropertyTrees::ResetFlags::ALL_TREES); 539 property_trees_.ResetAllChangeTracking();
540 } 540 }
541 541
542 void LayerTreeHost::WillCommit() { 542 void LayerTreeHost::WillCommit() {
543 OnCommitForSwapPromises(); 543 OnCommitForSwapPromises();
544 client_->WillCommit(); 544 client_->WillCommit();
545 } 545 }
546 546
547 void LayerTreeHost::UpdateHudLayer() { 547 void LayerTreeHost::UpdateHudLayer() {
548 if (debug_state_.ShowHudInfo()) { 548 if (debug_state_.ShowHudInfo()) {
549 if (!hud_layer_.get()) { 549 if (!hud_layer_.get()) {
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1668 int seq_num = property_trees_.sequence_number; 1668 int seq_num = property_trees_.sequence_number;
1669 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { 1669 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) {
1670 layer->set_property_tree_sequence_number(seq_num); 1670 layer->set_property_tree_sequence_number(seq_num);
1671 }); 1671 });
1672 1672
1673 surface_id_namespace_ = proto.surface_id_namespace(); 1673 surface_id_namespace_ = proto.surface_id_namespace();
1674 next_surface_sequence_ = proto.next_surface_sequence(); 1674 next_surface_sequence_ = proto.next_surface_sequence();
1675 } 1675 }
1676 1676
1677 } // namespace cc 1677 } // 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