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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 1944623002: CC Animation: Use ElementId to attach CC animation players. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erasedomids
Patch Set: Let CC clients generate their own ElementIds locally. 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 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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 virtual void BeginCommit(); 234 virtual void BeginCommit();
235 virtual void CommitComplete(); 235 virtual void CommitComplete();
236 virtual void UpdateAnimationState(bool start_ready_animations); 236 virtual void UpdateAnimationState(bool start_ready_animations);
237 void ActivateAnimations(); 237 void ActivateAnimations();
238 void Animate(); 238 void Animate();
239 void AnimatePendingTreeAfterCommit(); 239 void AnimatePendingTreeAfterCommit();
240 void MainThreadHasStoppedFlinging(); 240 void MainThreadHasStoppedFlinging();
241 void DidAnimateScrollOffset(); 241 void DidAnimateScrollOffset();
242 void SetViewportDamage(const gfx::Rect& damage_rect); 242 void SetViewportDamage(const gfx::Rect& damage_rect);
243 243
244 void SetTreeLayerFilterMutated(int layer_id, 244 void SetTreeLayerFilterMutated(ElementId element_id,
245 LayerTreeImpl* tree, 245 LayerTreeImpl* tree,
246 const FilterOperations& filters); 246 const FilterOperations& filters);
247 void SetTreeLayerOpacityMutated(int layer_id, 247 void SetTreeLayerOpacityMutated(ElementId element_id,
248 LayerTreeImpl* tree, 248 LayerTreeImpl* tree,
249 float opacity); 249 float opacity);
250 void SetTreeLayerTransformMutated(int layer_id, 250 void SetTreeLayerTransformMutated(ElementId element_id,
251 LayerTreeImpl* tree, 251 LayerTreeImpl* tree,
252 const gfx::Transform& transform); 252 const gfx::Transform& transform);
253 void SetTreeLayerScrollOffsetMutated(int layer_id, 253 void SetTreeLayerScrollOffsetMutated(ElementId element_id,
254 LayerTreeImpl* tree, 254 LayerTreeImpl* tree,
255 const gfx::ScrollOffset& scroll_offset); 255 const gfx::ScrollOffset& scroll_offset);
256 void TreeLayerTransformIsPotentiallyAnimatingChanged(int layer_id, 256 void TreeLayerTransformIsPotentiallyAnimatingChanged(ElementId element_id,
257 LayerTreeImpl* tree, 257 LayerTreeImpl* tree,
258 bool is_animating); 258 bool is_animating);
259 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; 259 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const;
260 260
261 // MutatorHostClient implementation. 261 // MutatorHostClient implementation.
262 bool IsElementInList(ElementId element_id, 262 bool IsElementInList(ElementId element_id,
263 ElementListType list_type) const override; 263 ElementListType list_type) const override;
264 void SetMutatorsNeedCommit() override; 264 void SetMutatorsNeedCommit() override;
265 void SetMutatorsNeedRebuildPropertyTrees() override; 265 void SetMutatorsNeedRebuildPropertyTrees() override;
266 void SetElementFilterMutated(ElementId element_id, 266 void SetElementFilterMutated(ElementId element_id,
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 std::unique_ptr<Viewport> viewport_; 843 std::unique_ptr<Viewport> viewport_;
844 844
845 LayerTreeMutator* mutator_; 845 LayerTreeMutator* mutator_;
846 846
847 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 847 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
848 }; 848 };
849 849
850 } // namespace cc 850 } // namespace cc
851 851
852 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 852 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698