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

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

Issue 1009233002: CC Animations: Port Impl-only-scrolling to use compositor animation timelines. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ui
Patch Set: Add unittests. Created 5 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
« no previous file with comments | « cc/animation/animation_player_unittest.cc ('k') | cc/trees/layer_tree_host.cc » ('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 #ifndef CC_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 void SetLayerOpacityMutated(int layer_id, 323 void SetLayerOpacityMutated(int layer_id,
324 bool active_tree, 324 bool active_tree,
325 float opacity) override; 325 float opacity) override;
326 void SetLayerTransformMutated(int layer_id, 326 void SetLayerTransformMutated(int layer_id,
327 bool active_tree, 327 bool active_tree,
328 const gfx::Transform& transform) override; 328 const gfx::Transform& transform) override;
329 void SetLayerScrollOffsetMutated( 329 void SetLayerScrollOffsetMutated(
330 int layer_id, 330 int layer_id,
331 bool active_tree, 331 bool active_tree,
332 const gfx::ScrollOffset& scroll_offset) override; 332 const gfx::ScrollOffset& scroll_offset) override;
333 gfx::ScrollOffset GetScrollOffsetForAnimation(int layer_id) const override;
333 334
334 bool IsAnimatingFilterProperty(const Layer* layer) const; 335 bool IsAnimatingFilterProperty(const Layer* layer) const;
335 bool IsAnimatingOpacityProperty(const Layer* layer) const; 336 bool IsAnimatingOpacityProperty(const Layer* layer) const;
336 bool IsAnimatingTransformProperty(const Layer* layer) const; 337 bool IsAnimatingTransformProperty(const Layer* layer) const;
337 bool AnimationsPreserveAxisAlignment(const Layer* layer) const; 338 bool AnimationsPreserveAxisAlignment(const Layer* layer) const;
338 bool HasAnyAnimation(const Layer* layer) const; 339 bool HasAnyAnimation(const Layer* layer) const;
339 bool HasActiveAnimation(const Layer* layer) const; 340 bool HasActiveAnimation(const Layer* layer) const;
340 341
341 protected: 342 protected:
342 LayerTreeHost(LayerTreeHostClient* client, 343 LayerTreeHost(LayerTreeHostClient* client,
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 488
488 uint32_t surface_id_namespace_; 489 uint32_t surface_id_namespace_;
489 uint32_t next_surface_sequence_; 490 uint32_t next_surface_sequence_;
490 491
491 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 492 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
492 }; 493 };
493 494
494 } // namespace cc 495 } // namespace cc
495 496
496 #endif // CC_TREES_LAYER_TREE_HOST_H_ 497 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/animation/animation_player_unittest.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698