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

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

Issue 2101683002: [SPv2] Begin to convert the Blink transform tree to cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I can haz unit test Created 4 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 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 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 root_layer, page_scale_layer, inner_viewport_scroll_layer_.get(), 1017 root_layer, page_scale_layer, inner_viewport_scroll_layer_.get(),
1018 outer_viewport_scroll_layer_.get(), 1018 outer_viewport_scroll_layer_.get(),
1019 overscroll_elasticity_layer_.get(), elastic_overscroll_, 1019 overscroll_elasticity_layer_.get(), elastic_overscroll_,
1020 page_scale_factor_, device_scale_factor_, 1020 page_scale_factor_, device_scale_factor_,
1021 gfx::Rect(device_viewport_size_), identity_transform, 1021 gfx::Rect(device_viewport_size_), identity_transform,
1022 &property_trees_); 1022 &property_trees_);
1023 TRACE_EVENT_INSTANT1("cc", 1023 TRACE_EVENT_INSTANT1("cc",
1024 "LayerTreeHost::UpdateLayers_BuiltPropertyTrees", 1024 "LayerTreeHost::UpdateLayers_BuiltPropertyTrees",
1025 TRACE_EVENT_SCOPE_THREAD, "property_trees", 1025 TRACE_EVENT_SCOPE_THREAD, "property_trees",
1026 property_trees_.AsTracedValue()); 1026 property_trees_.AsTracedValue());
1027 } else {
1028 TRACE_EVENT_INSTANT1("cc",
1029 "LayerTreeHost::UpdateLayers_ReceivedPropertyTrees",
1030 TRACE_EVENT_SCOPE_THREAD, "property_trees",
1031 property_trees_.AsTracedValue());
1027 } 1032 }
1028 draw_property_utils::UpdatePropertyTrees(&property_trees_, 1033 draw_property_utils::UpdatePropertyTrees(&property_trees_,
1029 can_render_to_separate_surface); 1034 can_render_to_separate_surface);
1030 draw_property_utils::FindLayersThatNeedUpdates( 1035 draw_property_utils::FindLayersThatNeedUpdates(
1031 this, property_trees_.transform_tree, property_trees_.effect_tree, 1036 this, property_trees_.transform_tree, property_trees_.effect_tree,
1032 &update_layer_list); 1037 &update_layer_list);
1033 } 1038 }
1034 1039
1035 for (const auto& layer : update_layer_list) 1040 for (const auto& layer : update_layer_list)
1036 layer->SavePaintProperties(); 1041 layer->SavePaintProperties();
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 int seq_num = property_trees_.sequence_number; 1728 int seq_num = property_trees_.sequence_number;
1724 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { 1729 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) {
1725 layer->set_property_tree_sequence_number(seq_num); 1730 layer->set_property_tree_sequence_number(seq_num);
1726 }); 1731 });
1727 1732
1728 surface_id_namespace_ = proto.surface_id_namespace(); 1733 surface_id_namespace_ = proto.surface_id_namespace();
1729 next_surface_sequence_ = proto.next_surface_sequence(); 1734 next_surface_sequence_ = proto.next_surface_sequence();
1730 } 1735 }
1731 1736
1732 } // namespace cc 1737 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698