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

Side by Side Diff: third_party/WebKit/Source/core/animation/CompositorAnimations.h

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get element id's from scroll node data directly. Created 4 years, 6 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 static bool isCompositableProperty(CSSPropertyID); 53 static bool isCompositableProperty(CSSPropertyID);
54 static const CSSPropertyID compositableProperties[7]; 54 static const CSSPropertyID compositableProperties[7];
55 55
56 virtual bool isCandidateForAnimationOnCompositor(const Timing&, const Elemen t&, const Animation*, const EffectModel&, double animationPlaybackRate); 56 virtual bool isCandidateForAnimationOnCompositor(const Timing&, const Elemen t&, const Animation*, const EffectModel&, double animationPlaybackRate);
57 virtual void cancelIncompatibleAnimationsOnCompositor(const Element&, const Animation&, const EffectModel&); 57 virtual void cancelIncompatibleAnimationsOnCompositor(const Element&, const Animation&, const EffectModel&);
58 virtual bool canStartAnimationOnCompositor(const Element&); 58 virtual bool canStartAnimationOnCompositor(const Element&);
59 virtual void startAnimationOnCompositor(const Element&, int group, double st artTime, double timeOffset, const Timing&, const Animation&, const EffectModel&, Vector<int>& startedAnimationIds, double animationPlaybackRate); 59 virtual void startAnimationOnCompositor(const Element&, int group, double st artTime, double timeOffset, const Timing&, const Animation&, const EffectModel&, Vector<int>& startedAnimationIds, double animationPlaybackRate);
60 virtual void cancelAnimationOnCompositor(const Element&, const Animation&, i nt id); 60 virtual void cancelAnimationOnCompositor(const Element&, const Animation&, i nt id);
61 virtual void pauseAnimationForTestingOnCompositor(const Element&, const Anim ation&, int id, double pauseTime); 61 virtual void pauseAnimationForTestingOnCompositor(const Element&, const Anim ation&, int id, double pauseTime);
62 62
63 virtual bool canAttachCompositedLayers(const Element&, const Animation&); 63 virtual void attachCompositedLayers(Element&, const Animation&);
64 virtual void attachCompositedLayers(const Element&, const Animation&);
65 64
66 virtual bool getAnimatedBoundingBox(FloatBox&, const EffectModel&, double mi nValue, double maxValue) const; 65 virtual bool getAnimatedBoundingBox(FloatBox&, const EffectModel&, double mi nValue, double maxValue) const;
67 66
68 protected: 67 protected:
69 CompositorAnimations(); 68 CompositorAnimations();
70 69
71 private: 70 private:
72 static CompositorAnimations* instance(CompositorAnimations* newInstance); 71 static CompositorAnimations* instance(CompositorAnimations* newInstance);
73 }; 72 };
74 73
75 } // namespace blink 74 } // namespace blink
76 75
77 #endif 76 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698