| 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 25 matching lines...) Expand all Loading... |
| 36 #include "core/animation/EffectModel.h" | 36 #include "core/animation/EffectModel.h" |
| 37 #include "core/animation/Timing.h" | 37 #include "core/animation/Timing.h" |
| 38 #include "platform/animation/TimingFunction.h" | 38 #include "platform/animation/TimingFunction.h" |
| 39 #include "platform/wtf/Allocator.h" | 39 #include "platform/wtf/Allocator.h" |
| 40 #include "platform/wtf/Vector.h" | 40 #include "platform/wtf/Vector.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 class Animation; | 44 class Animation; |
| 45 class CompositorAnimation; | 45 class CompositorAnimation; |
| 46 class CompositorAnimationPlayer; |
| 46 class Element; | 47 class Element; |
| 47 class FloatBox; | 48 class FloatBox; |
| 48 class KeyframeEffectModelBase; | 49 class KeyframeEffectModelBase; |
| 49 | 50 |
| 50 class CORE_EXPORT CompositorAnimations { | 51 class CORE_EXPORT CompositorAnimations { |
| 51 STATIC_ONLY(CompositorAnimations); | 52 STATIC_ONLY(CompositorAnimations); |
| 52 | 53 |
| 53 public: | 54 public: |
| 54 static bool IsCompositableProperty(CSSPropertyID); | 55 static bool IsCompositableProperty(CSSPropertyID); |
| 55 static const CSSPropertyID kCompositableProperties[7]; | 56 static const CSSPropertyID kCompositableProperties[7]; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 const EffectModel&, | 92 const EffectModel&, |
| 92 double animation_playback_rate); | 93 double animation_playback_rate); |
| 93 static void CancelIncompatibleAnimationsOnCompositor(const Element&, | 94 static void CancelIncompatibleAnimationsOnCompositor(const Element&, |
| 94 const Animation&, | 95 const Animation&, |
| 95 const EffectModel&); | 96 const EffectModel&); |
| 96 static void StartAnimationOnCompositor(const Element&, | 97 static void StartAnimationOnCompositor(const Element&, |
| 97 int group, | 98 int group, |
| 98 double start_time, | 99 double start_time, |
| 99 double time_offset, | 100 double time_offset, |
| 100 const Timing&, | 101 const Timing&, |
| 101 const Animation&, | 102 const Animation*, |
| 103 CompositorAnimationPlayer*, |
| 102 const EffectModel&, | 104 const EffectModel&, |
| 103 Vector<int>& started_animation_ids, | 105 Vector<int>& started_animation_ids, |
| 104 double animation_playback_rate); | 106 double animation_playback_rate); |
| 105 static void CancelAnimationOnCompositor(const Element&, | 107 static void CancelAnimationOnCompositor(const Element&, |
| 106 const Animation&, | 108 const Animation&, |
| 107 int id); | 109 int id); |
| 108 static void PauseAnimationForTestingOnCompositor(const Element&, | 110 static void PauseAnimationForTestingOnCompositor(const Element&, |
| 109 const Animation&, | 111 const Animation&, |
| 110 int id, | 112 int id, |
| 111 double pause_time); | 113 double pause_time); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 canStartElementOnCompositorTransformSPv2); | 157 canStartElementOnCompositorTransformSPv2); |
| 156 FRIEND_TEST_ALL_PREFIXES(AnimationCompositorAnimationsTest, | 158 FRIEND_TEST_ALL_PREFIXES(AnimationCompositorAnimationsTest, |
| 157 canStartElementOnCompositorEffectSPv2); | 159 canStartElementOnCompositorEffectSPv2); |
| 158 FRIEND_TEST_ALL_PREFIXES(AnimationCompositorAnimationsTest, | 160 FRIEND_TEST_ALL_PREFIXES(AnimationCompositorAnimationsTest, |
| 159 cancelIncompatibleCompositorAnimations); | 161 cancelIncompatibleCompositorAnimations); |
| 160 }; | 162 }; |
| 161 | 163 |
| 162 } // namespace blink | 164 } // namespace blink |
| 163 | 165 |
| 164 #endif | 166 #endif |
| OLD | NEW |