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

Unified Diff: cc/layers/layer_impl.h

Issue 2130053002: cc: Clean up Layer and LayerTreeHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@start_minor_layer_cleanup
Patch Set: Rebase Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index 3c0255f47bc34e644778c952b633d5290c8e59cc..a2136dba702315fa08782b6e8d8f55f6b22d345c 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -34,6 +34,7 @@
#include "cc/quads/shared_quad_state.h"
#include "cc/resources/resource_provider.h"
#include "cc/tiles/tile_priority.h"
+#include "cc/trees/mutator_host_client.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkXfermode.h"
#include "ui/gfx/geometry/point3_f.h"
@@ -52,6 +53,7 @@ class DictionaryValue;
namespace cc {
+class AnimationHost;
class LayerTreeHostImpl;
class LayerTreeImpl;
class MicroBenchmarkImpl;
@@ -202,8 +204,6 @@ class CC_EXPORT LayerImpl {
bool contents_opaque() const { return contents_opaque_; }
float Opacity() const;
- bool OpacityIsAnimating() const;
- bool HasPotentiallyRunningOpacityAnimation() const;
void SetElementId(ElementId element_id);
ElementId element_id() const { return element_id_; }
@@ -364,15 +364,6 @@ class CC_EXPORT LayerImpl {
const gfx::Transform& transform() const { return transform_; }
bool TransformIsAnimating() const;
bool HasPotentiallyRunningTransformAnimation() const;
- bool HasOnlyTranslationTransforms() const;
- bool AnimationsPreserveAxisAlignment() const;
-
- bool MaximumTargetScale(float* max_scale) const;
- bool AnimationStartScale(float* start_scale) const;
-
- // This includes all animations, even those that are finished but haven't yet
- // been deleted.
- bool HasAnyAnimationTargetingProperty(TargetProperty::Type property) const;
bool HasFilterAnimationThatInflatesBounds() const;
bool HasTransformAnimationThatInflatesBounds() const;
@@ -474,6 +465,10 @@ class CC_EXPORT LayerImpl {
return has_will_change_transform_hint_;
}
+ AnimationHost* GetAnimationHost() const;
+
+ ElementListType GetElementTypeForAnimation() const;
+
protected:
LayerImpl(LayerTreeImpl* layer_impl,
int id,
@@ -497,6 +492,12 @@ class CC_EXPORT LayerImpl {
gfx::Rect GetScaledEnclosingRectInTargetSpace(float scale) const;
private:
+ bool HasOnlyTranslationTransforms() const;
+
+ // This includes all animations, even those that are finished but haven't yet
+ // been deleted.
+ bool HasAnyAnimationTargetingProperty(TargetProperty::Type property) const;
+
void ValidateQuadResourcesInternal(DrawQuad* quad) const;
virtual const char* LayerTypeAsString() const;
« 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