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

Side by Side Diff: cc/layers/layer_impl.h

Issue 1010663002: CC Animations: Redirect all compositor animation requests to AnimationHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@introduce
Patch Set: Rebase. Created 5 years, 5 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/layers/layer.cc ('k') | cc/layers/layer_impl.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_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 293
294 void SetMasksToBounds(bool masks_to_bounds); 294 void SetMasksToBounds(bool masks_to_bounds);
295 bool masks_to_bounds() const { return masks_to_bounds_; } 295 bool masks_to_bounds() const { return masks_to_bounds_; }
296 296
297 void SetContentsOpaque(bool opaque); 297 void SetContentsOpaque(bool opaque);
298 bool contents_opaque() const { return contents_opaque_; } 298 bool contents_opaque() const { return contents_opaque_; }
299 299
300 void SetOpacity(float opacity); 300 void SetOpacity(float opacity);
301 float opacity() const { return opacity_; } 301 float opacity() const { return opacity_; }
302 bool OpacityIsAnimating() const; 302 bool OpacityIsAnimating() const;
303 bool HasPotentiallyRunningOpacityAnimation() const;
303 bool OpacityIsAnimatingOnImplOnly() const; 304 bool OpacityIsAnimatingOnImplOnly() const;
304 305
305 void SetBlendMode(SkXfermode::Mode); 306 void SetBlendMode(SkXfermode::Mode);
306 SkXfermode::Mode blend_mode() const { return blend_mode_; } 307 SkXfermode::Mode blend_mode() const { return blend_mode_; }
307 bool uses_default_blend_mode() const { 308 bool uses_default_blend_mode() const {
308 return blend_mode_ == SkXfermode::kSrcOver_Mode; 309 return blend_mode_ == SkXfermode::kSrcOver_Mode;
309 } 310 }
310 311
311 void SetIsRootForIsolatedGroup(bool root); 312 void SetIsRootForIsolatedGroup(bool root);
312 bool is_root_for_isolated_group() const { 313 bool is_root_for_isolated_group() const {
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 const gfx::PointF& screen_space_point, 529 const gfx::PointF& screen_space_point,
529 InputHandler::ScrollInputType type, 530 InputHandler::ScrollInputType type,
530 ScrollBlocksOn effective_block_mode) const; 531 ScrollBlocksOn effective_block_mode) const;
531 532
532 void SetDoubleSided(bool double_sided); 533 void SetDoubleSided(bool double_sided);
533 bool double_sided() const { return double_sided_; } 534 bool double_sided() const { return double_sided_; }
534 535
535 void SetTransform(const gfx::Transform& transform); 536 void SetTransform(const gfx::Transform& transform);
536 const gfx::Transform& transform() const { return transform_; } 537 const gfx::Transform& transform() const { return transform_; }
537 bool TransformIsAnimating() const; 538 bool TransformIsAnimating() const;
539 bool HasPotentiallyRunningTransformAnimation() const;
538 bool TransformIsAnimatingOnImplOnly() const; 540 bool TransformIsAnimatingOnImplOnly() const;
541 bool HasOnlyTranslationTransforms() const;
539 void SetTransformAndInvertibility(const gfx::Transform& transform, 542 void SetTransformAndInvertibility(const gfx::Transform& transform,
540 bool transform_is_invertible); 543 bool transform_is_invertible);
541 bool transform_is_invertible() const { return transform_is_invertible_; } 544 bool transform_is_invertible() const { return transform_is_invertible_; }
542 545
546 bool MaximumTargetScale(float* max_scale) const;
547 bool AnimationStartScale(float* start_scale) const;
548
549 bool HasFilterAnimationThatInflatesBounds() const;
550 bool HasTransformAnimationThatInflatesBounds() const;
551 bool HasAnimationThatInflatesBounds() const;
552
553 bool FilterAnimationBoundsForBox(const gfx::BoxF& box,
554 gfx::BoxF* bounds) const;
555 bool TransformAnimationBoundsForBox(const gfx::BoxF& box,
556 gfx::BoxF* bounds) const;
557
543 // Note this rect is in layer space (not content space). 558 // Note this rect is in layer space (not content space).
544 void SetUpdateRect(const gfx::Rect& update_rect); 559 void SetUpdateRect(const gfx::Rect& update_rect);
545 gfx::Rect update_rect() const { return update_rect_; } 560 gfx::Rect update_rect() const { return update_rect_; }
546 561
547 void AddDamageRect(const gfx::RectF& damage_rect); 562 void AddDamageRect(const gfx::RectF& damage_rect);
548 563
549 const gfx::RectF& damage_rect() const { return damage_rect_; } 564 const gfx::RectF& damage_rect() const { return damage_rect_; }
550 565
551 virtual base::DictionaryValue* LayerTreeAsJson() const; 566 virtual base::DictionaryValue* LayerTreeAsJson() const;
552 567
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 bool visited_; 861 bool visited_;
847 bool layer_or_descendant_is_drawn_; 862 bool layer_or_descendant_is_drawn_;
848 bool sorted_for_recursion_; 863 bool sorted_for_recursion_;
849 864
850 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 865 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
851 }; 866 };
852 867
853 } // namespace cc 868 } // namespace cc
854 869
855 #endif // CC_LAYERS_LAYER_IMPL_H_ 870 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698