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

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 and fix conflicts (HasPotentiallyRunningTransformAnimation) Created 5 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
« 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 void SetMasksToBounds(bool masks_to_bounds); 296 void SetMasksToBounds(bool masks_to_bounds);
297 bool masks_to_bounds() const { return masks_to_bounds_; } 297 bool masks_to_bounds() const { return masks_to_bounds_; }
298 298
299 void SetContentsOpaque(bool opaque); 299 void SetContentsOpaque(bool opaque);
300 bool contents_opaque() const { return contents_opaque_; } 300 bool contents_opaque() const { return contents_opaque_; }
301 301
302 void SetOpacity(float opacity); 302 void SetOpacity(float opacity);
303 float opacity() const { return opacity_; } 303 float opacity() const { return opacity_; }
304 bool OpacityIsAnimating() const; 304 bool OpacityIsAnimating() const;
305 bool HasPotentiallyRunningOpacityAnimation() const;
305 bool OpacityIsAnimatingOnImplOnly() const; 306 bool OpacityIsAnimatingOnImplOnly() const;
306 307
307 void SetBlendMode(SkXfermode::Mode); 308 void SetBlendMode(SkXfermode::Mode);
308 SkXfermode::Mode blend_mode() const { return blend_mode_; } 309 SkXfermode::Mode blend_mode() const { return blend_mode_; }
309 bool uses_default_blend_mode() const { 310 bool uses_default_blend_mode() const {
310 return blend_mode_ == SkXfermode::kSrcOver_Mode; 311 return blend_mode_ == SkXfermode::kSrcOver_Mode;
311 } 312 }
312 313
313 void SetIsRootForIsolatedGroup(bool root); 314 void SetIsRootForIsolatedGroup(bool root);
314 bool is_root_for_isolated_group() const { 315 bool is_root_for_isolated_group() const {
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 const gfx::PointF& screen_space_point, 533 const gfx::PointF& screen_space_point,
533 InputHandler::ScrollInputType type, 534 InputHandler::ScrollInputType type,
534 ScrollBlocksOn effective_block_mode) const; 535 ScrollBlocksOn effective_block_mode) const;
535 536
536 void SetDoubleSided(bool double_sided); 537 void SetDoubleSided(bool double_sided);
537 bool double_sided() const { return double_sided_; } 538 bool double_sided() const { return double_sided_; }
538 539
539 void SetTransform(const gfx::Transform& transform); 540 void SetTransform(const gfx::Transform& transform);
540 const gfx::Transform& transform() const { return transform_; } 541 const gfx::Transform& transform() const { return transform_; }
541 bool TransformIsAnimating() const; 542 bool TransformIsAnimating() const;
543 bool HasPotentiallyRunningTransformAnimation() const;
542 bool TransformIsAnimatingOnImplOnly() const; 544 bool TransformIsAnimatingOnImplOnly() const;
545 bool HasOnlyTranslationTransforms() const;
543 void SetTransformAndInvertibility(const gfx::Transform& transform, 546 void SetTransformAndInvertibility(const gfx::Transform& transform,
544 bool transform_is_invertible); 547 bool transform_is_invertible);
545 bool transform_is_invertible() const { return transform_is_invertible_; } 548 bool transform_is_invertible() const { return transform_is_invertible_; }
546 549
550 bool MaximumTargetScale(float* max_scale) const;
551
552 bool HasFilterAnimationThatInflatesBounds() const;
553 bool HasTransformAnimationThatInflatesBounds() const;
554 bool HasAnimationThatInflatesBounds() const;
555
556 bool FilterAnimationBoundsForBox(const gfx::BoxF& box,
557 gfx::BoxF* bounds) const;
558 bool TransformAnimationBoundsForBox(const gfx::BoxF& box,
559 gfx::BoxF* bounds) const;
560
547 // Note this rect is in layer space (not content space). 561 // Note this rect is in layer space (not content space).
548 void SetUpdateRect(const gfx::Rect& update_rect); 562 void SetUpdateRect(const gfx::Rect& update_rect);
549 gfx::Rect update_rect() const { return update_rect_; } 563 gfx::Rect update_rect() const { return update_rect_; }
550 564
551 void AddDamageRect(const gfx::RectF& damage_rect); 565 void AddDamageRect(const gfx::RectF& damage_rect);
552 566
553 const gfx::RectF& damage_rect() const { return damage_rect_; } 567 const gfx::RectF& damage_rect() const { return damage_rect_; }
554 568
555 virtual base::DictionaryValue* LayerTreeAsJson() const; 569 virtual base::DictionaryValue* LayerTreeAsJson() const;
556 570
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 843
830 std::vector<FrameTimingRequest> frame_timing_requests_; 844 std::vector<FrameTimingRequest> frame_timing_requests_;
831 bool frame_timing_requests_dirty_; 845 bool frame_timing_requests_dirty_;
832 846
833 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 847 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
834 }; 848 };
835 849
836 } // namespace cc 850 } // namespace cc
837 851
838 #endif // CC_LAYERS_LAYER_IMPL_H_ 852 #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