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

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

Issue 2448403002: cc: Clean up transform tree (Closed)
Patch Set: PAC Created 4 years, 1 month 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/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_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_in_process.h" 5 #include "cc/trees/layer_tree_host_in_process.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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 property_trees->AsTracedValue()); 794 property_trees->AsTracedValue());
795 } else { 795 } else {
796 TRACE_EVENT_INSTANT1( 796 TRACE_EVENT_INSTANT1(
797 "cc", "LayerTreeHostInProcess::UpdateLayers_ReceivedPropertyTrees", 797 "cc", "LayerTreeHostInProcess::UpdateLayers_ReceivedPropertyTrees",
798 TRACE_EVENT_SCOPE_THREAD, "property_trees", 798 TRACE_EVENT_SCOPE_THREAD, "property_trees",
799 property_trees->AsTracedValue()); 799 property_trees->AsTracedValue());
800 } 800 }
801 draw_property_utils::UpdatePropertyTrees(property_trees, 801 draw_property_utils::UpdatePropertyTrees(property_trees,
802 can_render_to_separate_surface); 802 can_render_to_separate_surface);
803 draw_property_utils::FindLayersThatNeedUpdates( 803 draw_property_utils::FindLayersThatNeedUpdates(
804 layer_tree_.get(), property_trees->transform_tree, 804 layer_tree_.get(), property_trees, &update_layer_list);
805 property_trees->effect_tree, &update_layer_list);
806 } 805 }
807 806
808 for (const auto& layer : update_layer_list) 807 for (const auto& layer : update_layer_list)
809 layer->SavePaintProperties(); 808 layer->SavePaintProperties();
810 809
811 bool content_is_suitable_for_gpu = true; 810 bool content_is_suitable_for_gpu = true;
812 bool did_paint_content = layer_tree_->UpdateLayers( 811 bool did_paint_content = layer_tree_->UpdateLayers(
813 update_layer_list, &content_is_suitable_for_gpu); 812 update_layer_list, &content_is_suitable_for_gpu);
814 813
815 if (content_is_suitable_for_gpu) { 814 if (content_is_suitable_for_gpu) {
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1029 1028
1030 debug_state_.FromProtobuf(proto.debug_state()); 1029 debug_state_.FromProtobuf(proto.debug_state());
1031 has_gpu_rasterization_trigger_ = proto.has_gpu_rasterization_trigger(); 1030 has_gpu_rasterization_trigger_ = proto.has_gpu_rasterization_trigger();
1032 content_is_suitable_for_gpu_rasterization_ = 1031 content_is_suitable_for_gpu_rasterization_ =
1033 proto.content_is_suitable_for_gpu_rasterization(); 1032 proto.content_is_suitable_for_gpu_rasterization();
1034 id_ = proto.id(); 1033 id_ = proto.id();
1035 next_commit_forces_redraw_ = proto.next_commit_forces_redraw(); 1034 next_commit_forces_redraw_ = proto.next_commit_forces_redraw();
1036 } 1035 }
1037 1036
1038 } // namespace cc 1037 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698