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 void attachCompositedLayers(Element&, const Animation&); | 62 static bool canAttachCompositedLayers(const Element&, const Animation&); |
| 63 static void attachCompositedLayers(const Element&, const Animation&); |
63 | 64 |
64 static bool getAnimatedBoundingBox(FloatBox&, const EffectModel&, double min
Value, double maxValue); | 65 static bool getAnimatedBoundingBox(FloatBox&, const EffectModel&, double min
Value, double maxValue); |
65 | 66 |
66 struct CompositorTiming { | 67 struct CompositorTiming { |
67 Timing::PlaybackDirection direction; | 68 Timing::PlaybackDirection direction; |
68 double scaledDuration; | 69 double scaledDuration; |
69 double scaledTimeOffset; | 70 double scaledTimeOffset; |
70 double adjustedIterationCount; | 71 double adjustedIterationCount; |
71 double playbackRate; | 72 double playbackRate; |
72 Timing::FillMode fillMode; | 73 Timing::FillMode fillMode; |
73 double iterationStart; | 74 double iterationStart; |
74 }; | 75 }; |
75 | 76 |
76 static bool convertTimingForCompositor(const Timing&, double timeOffset, Com
positorTiming& out, double animationPlaybackRate); | 77 static bool convertTimingForCompositor(const Timing&, double timeOffset, Com
positorTiming& out, double animationPlaybackRate); |
77 | 78 |
78 static void getAnimationOnCompositor(const Timing&, int group, double startT
ime, double timeOffset, const KeyframeEffectModelBase&, Vector<OwnPtr<Compositor
Animation>>& animations, double animationPlaybackRate); | 79 static void getAnimationOnCompositor(const Timing&, int group, double startT
ime, double timeOffset, const KeyframeEffectModelBase&, Vector<OwnPtr<Compositor
Animation>>& animations, double animationPlaybackRate); |
79 }; | 80 }; |
80 | 81 |
81 } // namespace blink | 82 } // namespace blink |
82 | 83 |
83 #endif | 84 #endif |
OLD | NEW |