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

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

Issue 2762123004: cc: LayerTreeHostImpl uses element id to tick animations (Closed)
Patch Set: review comments Created 3 years, 8 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 void MainThreadHasStoppedFlinging(); 248 void MainThreadHasStoppedFlinging();
249 void DidAnimateScrollOffset(); 249 void DidAnimateScrollOffset();
250 void SetFullViewportDamage(); 250 void SetFullViewportDamage();
251 void SetViewportDamage(const gfx::Rect& damage_rect); 251 void SetViewportDamage(const gfx::Rect& damage_rect);
252 252
253 // Analogous to a commit, this function is used to create a sync tree and 253 // Analogous to a commit, this function is used to create a sync tree and
254 // add impl-side invalidations to it. 254 // add impl-side invalidations to it.
255 // virtual for testing. 255 // virtual for testing.
256 virtual void InvalidateContentOnImplSide(); 256 virtual void InvalidateContentOnImplSide();
257 257
258 void SetTreeLayerFilterMutated(ElementId element_id,
259 LayerTreeImpl* tree,
260 const FilterOperations& filters);
261 void SetTreeLayerOpacityMutated(ElementId element_id,
262 LayerTreeImpl* tree,
263 float opacity);
264 void SetTreeLayerTransformMutated(ElementId element_id,
265 LayerTreeImpl* tree,
266 const gfx::Transform& transform);
267 void SetTreeLayerScrollOffsetMutated(ElementId element_id, 258 void SetTreeLayerScrollOffsetMutated(ElementId element_id,
268 LayerTreeImpl* tree, 259 LayerTreeImpl* tree,
269 const gfx::ScrollOffset& scroll_offset); 260 const gfx::ScrollOffset& scroll_offset);
270 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const; 261 bool AnimationsPreserveAxisAlignment(const LayerImpl* layer) const;
271 void SetNeedUpdateGpuRasterizationStatus(); 262 void SetNeedUpdateGpuRasterizationStatus();
272 263
273 // MutatorHostClient implementation. 264 // MutatorHostClient implementation.
274 bool IsElementInList(ElementId element_id, 265 bool IsElementInList(ElementId element_id,
275 ElementListType list_type) const override; 266 ElementListType list_type) const override;
276 void SetMutatorsNeedCommit() override; 267 void SetMutatorsNeedCommit() override;
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 // These callbacks are stored here to be transfered to the main thread when we 843 // These callbacks are stored here to be transfered to the main thread when we
853 // begin main frame. These callbacks must only be called on the main thread. 844 // begin main frame. These callbacks must only be called on the main thread.
854 std::vector<base::Closure> completed_image_decode_callbacks_; 845 std::vector<base::Closure> completed_image_decode_callbacks_;
855 846
856 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 847 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
857 }; 848 };
858 849
859 } // namespace cc 850 } // namespace cc
860 851
861 #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