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

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

Issue 1975623002: cc : Add LayerToPropertyTreeIndices map to PropertyTrees (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
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 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // We don't track changes to effect tree on main thread. But, to preserve any 539 // We don't track changes to effect tree on main thread. But, to preserve any
540 // change tracking done on active tree's effect tree, we copy it to the main 540 // change tracking done on active tree's effect tree, we copy it to the main
541 // thread's effect tree before we push the main thread property trees to 541 // thread's effect tree before we push the main thread property trees to
542 // active tree. 542 // active tree.
543 if (property_trees_changed_on_active_tree) 543 if (property_trees_changed_on_active_tree)
544 property_trees_.ResetAllChangeTracking( 544 property_trees_.ResetAllChangeTracking(
545 PropertyTrees::ResetFlags::ALL_TREES); 545 PropertyTrees::Types::EFFECT_AND_TRANSFORM_TREES);
546 else 546 else
547 property_trees_.ResetAllChangeTracking( 547 property_trees_.ResetAllChangeTracking(
548 PropertyTrees::ResetFlags::TRANSFORM_TREE); 548 PropertyTrees::Types::TRANSFORM_TREE);
549 } 549 }
550 550
551 void LayerTreeHost::WillCommit() { 551 void LayerTreeHost::WillCommit() {
552 OnCommitForSwapPromises(); 552 OnCommitForSwapPromises();
553 client_->WillCommit(); 553 client_->WillCommit();
554 } 554 }
555 555
556 void LayerTreeHost::UpdateHudLayer() { 556 void LayerTreeHost::UpdateHudLayer() {
557 if (debug_state_.ShowHudInfo()) { 557 if (debug_state_.ShowHudInfo()) {
558 if (!hud_layer_.get()) { 558 if (!hud_layer_.get()) {
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1661 int seq_num = property_trees_.sequence_number; 1661 int seq_num = property_trees_.sequence_number;
1662 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { 1662 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) {
1663 layer->set_property_tree_sequence_number(seq_num); 1663 layer->set_property_tree_sequence_number(seq_num);
1664 }); 1664 });
1665 1665
1666 surface_id_namespace_ = proto.surface_id_namespace(); 1666 surface_id_namespace_ = proto.surface_id_namespace();
1667 next_surface_sequence_ = proto.next_surface_sequence(); 1667 next_surface_sequence_ = proto.next_surface_sequence();
1668 } 1668 }
1669 1669
1670 } // namespace cc 1670 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698