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

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: Add ported 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
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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 InputHandler::ScrollInputType type, 482 InputHandler::ScrollInputType type,
483 ScrollBlocksOn effective_block_mode) const; 483 ScrollBlocksOn effective_block_mode) const;
484 484
485 void SetDoubleSided(bool double_sided); 485 void SetDoubleSided(bool double_sided);
486 bool double_sided() const { return double_sided_; } 486 bool double_sided() const { return double_sided_; }
487 487
488 void SetTransform(const gfx::Transform& transform); 488 void SetTransform(const gfx::Transform& transform);
489 const gfx::Transform& transform() const { return transform_; } 489 const gfx::Transform& transform() const { return transform_; }
490 bool TransformIsAnimating() const; 490 bool TransformIsAnimating() const;
491 bool TransformIsAnimatingOnImplOnly() const; 491 bool TransformIsAnimatingOnImplOnly() const;
492 bool HasOnlyTranslationTransforms() const;
492 void SetTransformAndInvertibility(const gfx::Transform& transform, 493 void SetTransformAndInvertibility(const gfx::Transform& transform,
493 bool transform_is_invertible); 494 bool transform_is_invertible);
494 bool transform_is_invertible() const { return transform_is_invertible_; } 495 bool transform_is_invertible() const { return transform_is_invertible_; }
495 496
497 bool MaximumTargetScale(float* max_scale) const;
498
499 bool HasFilterAnimationThatInflatesBounds() const;
500 bool HasTransformAnimationThatInflatesBounds() const;
501 bool HasAnimationThatInflatesBounds() const;
502
503 bool FilterAnimationBoundsForBox(const gfx::BoxF& box,
504 gfx::BoxF* bounds) const;
505 bool TransformAnimationBoundsForBox(const gfx::BoxF& box,
506 gfx::BoxF* bounds) const;
507
496 // Note this rect is in layer space (not content space). 508 // Note this rect is in layer space (not content space).
497 void SetUpdateRect(const gfx::Rect& update_rect); 509 void SetUpdateRect(const gfx::Rect& update_rect);
498 gfx::Rect update_rect() const { return update_rect_; } 510 gfx::Rect update_rect() const { return update_rect_; }
499 511
500 void AddDamageRect(const gfx::RectF& damage_rect); 512 void AddDamageRect(const gfx::RectF& damage_rect);
501 513
502 const gfx::RectF& damage_rect() const { return damage_rect_; } 514 const gfx::RectF& damage_rect() const { return damage_rect_; }
503 515
504 virtual base::DictionaryValue* LayerTreeAsJson() const; 516 virtual base::DictionaryValue* LayerTreeAsJson() const;
505 517
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 778
767 std::vector<FrameTimingRequest> frame_timing_requests_; 779 std::vector<FrameTimingRequest> frame_timing_requests_;
768 bool frame_timing_requests_dirty_; 780 bool frame_timing_requests_dirty_;
769 781
770 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 782 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
771 }; 783 };
772 784
773 } // namespace cc 785 } // namespace cc
774 786
775 #endif // CC_LAYERS_LAYER_IMPL_H_ 787 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« cc/layers/layer.cc ('K') | « 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