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

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

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address reviewer feedback Created 4 years, 6 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 <bitset> 10 #include <bitset>
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 virtual void CommitComplete(); 240 virtual void CommitComplete();
241 virtual void UpdateAnimationState(bool start_ready_animations); 241 virtual void UpdateAnimationState(bool start_ready_animations);
242 bool Mutate(base::TimeTicks monotonic_time); 242 bool Mutate(base::TimeTicks monotonic_time);
243 void ActivateAnimations(); 243 void ActivateAnimations();
244 void Animate(); 244 void Animate();
245 void AnimatePendingTreeAfterCommit(); 245 void AnimatePendingTreeAfterCommit();
246 void MainThreadHasStoppedFlinging(); 246 void MainThreadHasStoppedFlinging();
247 void DidAnimateScrollOffset(); 247 void DidAnimateScrollOffset();
248 void SetViewportDamage(const gfx::Rect& damage_rect); 248 void SetViewportDamage(const gfx::Rect& damage_rect);
249 249
250 void SetTreeLayerFilterMutated(int layer_id, 250 void SetTreeLayerFilterMutated(ElementId element_id,
251 LayerTreeImpl* tree, 251 LayerTreeImpl* tree,
252 const FilterOperations& filters); 252 const FilterOperations& filters);
253 void SetTreeLayerOpacityMutated(int layer_id, 253 void SetTreeLayerOpacityMutated(ElementId element_id,
254 LayerTreeImpl* tree, 254 LayerTreeImpl* tree,
255 float opacity); 255 float opacity);
256 void SetTreeLayerTransformMutated(int layer_id, 256 void SetTreeLayerTransformMutated(ElementId element_id,
257 LayerTreeImpl* tree, 257 LayerTreeImpl* tree,
258 const gfx::Transform& transform); 258 const gfx::Transform& transform);
259 void SetTreeLayerScrollOffsetMutated(int layer_id, 259 void SetTreeLayerScrollOffsetMutated(ElementId element_id,
260 LayerTreeImpl* tree, 260 LayerTreeImpl* tree,
261 const gfx::ScrollOffset& scroll_offset); 261 const gfx::ScrollOffset& scroll_offset);
262 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; 262 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const;
263 263
264 // MutatorHostClient implementation. 264 // MutatorHostClient implementation.
265 bool IsElementInList(ElementId element_id, 265 bool IsElementInList(ElementId element_id,
266 ElementListType list_type) const override; 266 ElementListType list_type) const override;
267 void SetMutatorsNeedCommit() override; 267 void SetMutatorsNeedCommit() override;
268 void SetMutatorsNeedRebuildPropertyTrees() override; 268 void SetMutatorsNeedRebuildPropertyTrees() override;
269 void SetElementFilterMutated(ElementId element_id, 269 void SetElementFilterMutated(ElementId element_id,
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 fixed_raster_scale_attempted_scale_change_history_; 864 fixed_raster_scale_attempted_scale_change_history_;
865 std::unique_ptr<PendingTreeDurationHistogramTimer> 865 std::unique_ptr<PendingTreeDurationHistogramTimer>
866 pending_tree_duration_timer_; 866 pending_tree_duration_timer_;
867 867
868 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 868 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
869 }; 869 };
870 870
871 } // namespace cc 871 } // namespace cc
872 872
873 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 873 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698