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

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

Issue 1994213002: cc: Update effect_tree backface visibility when transform is updated. (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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/draw_property_utils.h" 5 #include "cc/trees/draw_property_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 property_trees->transform_tree, can_render_to_separate_surface); 781 property_trees->transform_tree, can_render_to_separate_surface);
782 } 782 }
783 783
784 void UpdatePropertyTrees(PropertyTrees* property_trees, 784 void UpdatePropertyTrees(PropertyTrees* property_trees,
785 bool can_render_to_separate_surface) { 785 bool can_render_to_separate_surface) {
786 if (property_trees->non_root_surfaces_enabled != 786 if (property_trees->non_root_surfaces_enabled !=
787 can_render_to_separate_surface) { 787 can_render_to_separate_surface) {
788 property_trees->non_root_surfaces_enabled = can_render_to_separate_surface; 788 property_trees->non_root_surfaces_enabled = can_render_to_separate_surface;
789 property_trees->transform_tree.set_needs_update(true); 789 property_trees->transform_tree.set_needs_update(true);
790 } 790 }
791 if (property_trees->transform_tree.needs_update()) 791 if (property_trees->transform_tree.needs_update()) {
792 property_trees->clip_tree.set_needs_update(true); 792 property_trees->clip_tree.set_needs_update(true);
793 property_trees->effect_tree.set_needs_update(true);
jaydasika 2016/05/19 17:07:58 I think it will be better if we call set_needs_upd
ajuma 2016/05/19 17:18:14 That's a good point. If we did that, we'd also hav
Peter Mayo 2016/05/19 17:33:20 It is not true that a translation can never change
jaydasika 2016/05/19 17:52:18 Ya, we will need to consider perspective also.
jaydasika 2016/05/19 17:52:18 Agreed, we should do the simple thing as this need
sunxd 2016/05/19 17:59:56 Yes, we can discuss about that after this CL.
794 }
793 ComputeTransforms(&property_trees->transform_tree); 795 ComputeTransforms(&property_trees->transform_tree);
794 ComputeClips(&property_trees->clip_tree, property_trees->transform_tree, 796 ComputeClips(&property_trees->clip_tree, property_trees->transform_tree,
795 can_render_to_separate_surface); 797 can_render_to_separate_surface);
796 ComputeEffects(&property_trees->effect_tree); 798 ComputeEffects(&property_trees->effect_tree);
797 } 799 }
798 800
799 void ComputeVisibleRectsForTesting(PropertyTrees* property_trees, 801 void ComputeVisibleRectsForTesting(PropertyTrees* property_trees,
800 bool can_render_to_separate_surface, 802 bool can_render_to_separate_surface,
801 LayerList* update_layer_list) { 803 LayerList* update_layer_list) {
802 CalculateVisibleRects<Layer>(*update_layer_list, property_trees->clip_tree, 804 CalculateVisibleRects<Layer>(*update_layer_list, property_trees->clip_tree,
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 void UpdateElasticOverscroll(PropertyTrees* property_trees, 1251 void UpdateElasticOverscroll(PropertyTrees* property_trees,
1250 const Layer* overscroll_elasticity_layer, 1252 const Layer* overscroll_elasticity_layer,
1251 const gfx::Vector2dF& elastic_overscroll) { 1253 const gfx::Vector2dF& elastic_overscroll) {
1252 UpdateElasticOverscrollInternal(property_trees, overscroll_elasticity_layer, 1254 UpdateElasticOverscrollInternal(property_trees, overscroll_elasticity_layer,
1253 elastic_overscroll); 1255 elastic_overscroll);
1254 } 1256 }
1255 1257
1256 } // namespace draw_property_utils 1258 } // namespace draw_property_utils
1257 1259
1258 } // namespace cc 1260 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_common_unittest.cc » ('j') | cc/trees/layer_tree_host_common_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698