OLD | NEW |
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 static bool isCompositableProperty(CSSPropertyID); | 52 static bool isCompositableProperty(CSSPropertyID); |
53 static const CSSPropertyID compositableProperties[7]; | 53 static const CSSPropertyID compositableProperties[7]; |
54 | 54 |
55 static bool isCandidateForAnimationOnCompositor(const Timing&, const Element
&, const Animation*, const EffectModel&, double animationPlaybackRate); | 55 static bool isCandidateForAnimationOnCompositor(const Timing&, const Element
&, const Animation*, const EffectModel&, double animationPlaybackRate); |
56 static void cancelIncompatibleAnimationsOnCompositor(const Element&, const A
nimation&, const EffectModel&); | 56 static void cancelIncompatibleAnimationsOnCompositor(const Element&, const A
nimation&, const EffectModel&); |
57 static bool canStartAnimationOnCompositor(const Element&); | 57 static bool canStartAnimationOnCompositor(const Element&); |
58 static void startAnimationOnCompositor(const Element&, int group, double sta
rtTime, double timeOffset, const Timing&, const Animation&, const EffectModel&,
Vector<int>& startedAnimationIds, double animationPlaybackRate); | 58 static void startAnimationOnCompositor(const Element&, int group, double sta
rtTime, double timeOffset, const Timing&, const Animation&, const EffectModel&,
Vector<int>& startedAnimationIds, double animationPlaybackRate); |
59 static void cancelAnimationOnCompositor(const Element&, const Animation&, in
t id); | 59 static void cancelAnimationOnCompositor(const Element&, const Animation&, in
t id); |
60 static void pauseAnimationForTestingOnCompositor(const Element&, const Anima
tion&, int id, double pauseTime); | 60 static void pauseAnimationForTestingOnCompositor(const Element&, const Anima
tion&, int id, double pauseTime); |
61 | 61 |
62 static bool canAttachCompositedLayers(const Element&, const Animation&); | 62 static void attachCompositedLayers(Element&, const Animation&); |
63 static void attachCompositedLayers(const Element&, const Animation&); | |
64 | 63 |
65 static bool getAnimatedBoundingBox(FloatBox&, const EffectModel&, double min
Value, double maxValue); | 64 static bool getAnimatedBoundingBox(FloatBox&, const EffectModel&, double min
Value, double maxValue); |
66 | 65 |
67 struct CompositorTiming { | 66 struct CompositorTiming { |
68 Timing::PlaybackDirection direction; | 67 Timing::PlaybackDirection direction; |
69 double scaledDuration; | 68 double scaledDuration; |
70 double scaledTimeOffset; | 69 double scaledTimeOffset; |
71 double adjustedIterationCount; | 70 double adjustedIterationCount; |
72 double playbackRate; | 71 double playbackRate; |
73 Timing::FillMode fillMode; | 72 Timing::FillMode fillMode; |
74 double iterationStart; | 73 double iterationStart; |
75 }; | 74 }; |
76 | 75 |
77 static bool convertTimingForCompositor(const Timing&, double timeOffset, Com
positorTiming& out, double animationPlaybackRate); | 76 static bool convertTimingForCompositor(const Timing&, double timeOffset, Com
positorTiming& out, double animationPlaybackRate); |
78 | 77 |
79 static void getAnimationOnCompositor(const Timing&, int group, double startT
ime, double timeOffset, const KeyframeEffectModelBase&, Vector<OwnPtr<Compositor
Animation>>& animations, double animationPlaybackRate); | 78 static void getAnimationOnCompositor(const Timing&, int group, double startT
ime, double timeOffset, const KeyframeEffectModelBase&, Vector<OwnPtr<Compositor
Animation>>& animations, double animationPlaybackRate); |
80 }; | 79 }; |
81 | 80 |
82 } // namespace blink | 81 } // namespace blink |
83 | 82 |
84 #endif | 83 #endif |
OLD | NEW |