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

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

Issue 2892103002: Update cc effect node documentation. (Closed)
Patch Set: Remove TODO. Created 3 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/effect_node.cc ('k') | cc/trees/property_tree_builder.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 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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 if (parent_node && parent_node->effect_changed) { 817 if (parent_node && parent_node->effect_changed) {
818 node->effect_changed = true; 818 node->effect_changed = true;
819 } 819 }
820 } 820 }
821 821
822 void EffectTree::UpdateBackfaceVisibility(EffectNode* node, 822 void EffectTree::UpdateBackfaceVisibility(EffectNode* node,
823 EffectNode* parent_node) { 823 EffectNode* parent_node) {
824 if (parent_node && parent_node->hidden_by_backface_visibility) { 824 if (parent_node && parent_node->hidden_by_backface_visibility) {
825 node->hidden_by_backface_visibility = true; 825 node->hidden_by_backface_visibility = true;
826 return; 826 return;
827 } else if (node->double_sided) { 827 }
828 if (node->double_sided) {
828 node->hidden_by_backface_visibility = false; 829 node->hidden_by_backface_visibility = false;
829 return; 830 return;
830 } 831 }
831 node->hidden_by_backface_visibility = 832 node->hidden_by_backface_visibility =
832 property_trees() 833 property_trees()
833 ->transform_tree.cached_data()[node->transform_id] 834 ->transform_tree.cached_data()[node->transform_id]
834 .is_showing_backface; 835 .is_showing_backface;
835 } 836 }
836 837
837 void EffectTree::UpdateSurfaceContentsScale(EffectNode* effect_node) { 838 void EffectTree::UpdateSurfaceContentsScale(EffectNode* effect_node) {
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
2100 const EffectNode* effect_node = effect_tree.Node(effect_id); 2101 const EffectNode* effect_node = effect_tree.Node(effect_id);
2101 2102
2102 if (effect_node->surface_contents_scale.x() != 0.0 && 2103 if (effect_node->surface_contents_scale.x() != 0.0 &&
2103 effect_node->surface_contents_scale.y() != 0.0) 2104 effect_node->surface_contents_scale.y() != 0.0)
2104 screen_space_transform.Scale(1.0 / effect_node->surface_contents_scale.x(), 2105 screen_space_transform.Scale(1.0 / effect_node->surface_contents_scale.x(),
2105 1.0 / effect_node->surface_contents_scale.y()); 2106 1.0 / effect_node->surface_contents_scale.y());
2106 return screen_space_transform; 2107 return screen_space_transform;
2107 } 2108 }
2108 2109
2109 } // namespace cc 2110 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/effect_node.cc ('k') | cc/trees/property_tree_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698