| OLD | NEW |
| 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 <algorithm> | 7 #include <algorithm> |
| 8 #include <stack> | 8 #include <stack> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 } | 1073 } |
| 1074 | 1074 |
| 1075 bool LayerTreeHost::IsLayerInTree(int layer_id, LayerTreeType tree_type) const { | 1075 bool LayerTreeHost::IsLayerInTree(int layer_id, LayerTreeType tree_type) const { |
| 1076 return tree_type == LayerTreeType::ACTIVE && LayerById(layer_id); | 1076 return tree_type == LayerTreeType::ACTIVE && LayerById(layer_id); |
| 1077 } | 1077 } |
| 1078 | 1078 |
| 1079 void LayerTreeHost::SetMutatorsNeedCommit() { | 1079 void LayerTreeHost::SetMutatorsNeedCommit() { |
| 1080 SetNeedsCommit(); | 1080 SetNeedsCommit(); |
| 1081 } | 1081 } |
| 1082 | 1082 |
| 1083 void LayerTreeHost::SetMutatorsNeedRebuildPropertyTrees() { |
| 1084 property_trees_.needs_rebuild = true; |
| 1085 } |
| 1086 |
| 1083 void LayerTreeHost::SetLayerFilterMutated(int layer_id, | 1087 void LayerTreeHost::SetLayerFilterMutated(int layer_id, |
| 1084 LayerTreeType tree_type, | 1088 LayerTreeType tree_type, |
| 1085 const FilterOperations& filters) { | 1089 const FilterOperations& filters) { |
| 1086 LayerAnimationValueObserver* layer = LayerById(layer_id); | 1090 LayerAnimationValueObserver* layer = LayerById(layer_id); |
| 1087 DCHECK(layer); | 1091 DCHECK(layer); |
| 1088 layer->OnFilterAnimated(filters); | 1092 layer->OnFilterAnimated(filters); |
| 1089 } | 1093 } |
| 1090 | 1094 |
| 1091 void LayerTreeHost::SetLayerOpacityMutated(int layer_id, | 1095 void LayerTreeHost::SetLayerOpacityMutated(int layer_id, |
| 1092 LayerTreeType tree_type, | 1096 LayerTreeType tree_type, |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1223 return animation_host_ ? animation_host_->HasAnyAnimation(layer->id()) | 1227 return animation_host_ ? animation_host_->HasAnyAnimation(layer->id()) |
| 1224 : false; | 1228 : false; |
| 1225 } | 1229 } |
| 1226 | 1230 |
| 1227 bool LayerTreeHost::HasActiveAnimation(const Layer* layer) const { | 1231 bool LayerTreeHost::HasActiveAnimation(const Layer* layer) const { |
| 1228 return animation_host_ ? animation_host_->HasActiveAnimation(layer->id()) | 1232 return animation_host_ ? animation_host_->HasActiveAnimation(layer->id()) |
| 1229 : false; | 1233 : false; |
| 1230 } | 1234 } |
| 1231 | 1235 |
| 1232 } // namespace cc | 1236 } // namespace cc |
| OLD | NEW |