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

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

Issue 1413003002: CC Animations: Fix AnimationHost mode integration with Property Trees. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: An attempt to fix weird EXPECT_EQ compilation errors. Created 5 years, 2 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/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('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.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
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
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
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698