summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorweiliangc <weiliangc@chromium.org>2015-08-20 07:52:29 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-20 14:53:24 +0000
commit3b4c7774526f38da8be93f8f2ceec45ed83eb8b2 (patch)
treed86c1a3a3d33223c6166e0e159aefab741671c2b
parent051806cfe6f40009649cc0f028c77995050feb0e (diff)
downloadchromium_src-3b4c7774526f38da8be93f8f2ceec45ed83eb8b2.zip
chromium_src-3b4c7774526f38da8be93f8f2ceec45ed83eb8b2.tar.gz
chromium_src-3b4c7774526f38da8be93f8f2ceec45ed83eb8b2.tar.bz2
Remove comment about property trees that is no longer true
We always builds effect tree (used to be opacity tree) now since we always use |PropertyTrees| object. Remove the comment that is no longer true. BUG= R=ajuma CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1307433002 Cr-Commit-Position: refs/heads/master@{#344500}
-rw-r--r--cc/trees/property_tree_builder.cc4
-rw-r--r--cc/trees/property_tree_builder.h2
2 files changed, 1 insertions, 5 deletions
diff --git a/cc/trees/property_tree_builder.cc b/cc/trees/property_tree_builder.cc
index ae338f4..1dd1b61 100644
--- a/cc/trees/property_tree_builder.cc
+++ b/cc/trees/property_tree_builder.cc
@@ -404,9 +404,7 @@ void BuildPropertyTreesInternal(
AddTransformNodeIfNeeded(data_from_parent, layer, &data_for_children);
AddClipNodeIfNeeded(data_from_parent, layer, created_transform_node,
&data_for_children);
-
- if (data_from_parent.effect_tree)
- AddEffectNodeIfNeeded(data_from_parent, layer, &data_for_children);
+ AddEffectNodeIfNeeded(data_from_parent, layer, &data_for_children);
if (layer == data_from_parent.page_scale_layer)
data_for_children.in_subtree_of_page_scale_layer = true;
diff --git a/cc/trees/property_tree_builder.h b/cc/trees/property_tree_builder.h
index f877aeb..a6cc52b 100644
--- a/cc/trees/property_tree_builder.h
+++ b/cc/trees/property_tree_builder.h
@@ -16,8 +16,6 @@ class LayerTreeHost;
class PropertyTreeBuilder {
public:
- // Building an opacity tree is optional, and can be skipped by passing
- // in a null |opacity_tree|.
static void BuildPropertyTrees(Layer* root_layer,
const Layer* page_scale_layer,
const Layer* inner_viewport_scroll_layer,