| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef CompositorAnimations_h | 31 #ifndef CompositorAnimations_h |
| 32 #define CompositorAnimations_h | 32 #define CompositorAnimations_h |
| 33 | 33 |
| 34 #include "core/CoreExport.h" | 34 #include "core/CoreExport.h" |
| 35 #include "core/animation/EffectModel.h" | 35 #include "core/animation/EffectModel.h" |
| 36 #include "core/animation/Timing.h" | 36 #include "core/animation/Timing.h" |
| 37 #include "platform/animation/TimingFunction.h" | 37 #include "platform/animation/TimingFunction.h" |
| 38 #include "wtf/Allocator.h" | 38 #include "wtf/Allocator.h" |
| 39 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
| 40 #include <memory> | |
| 41 | 40 |
| 42 namespace blink { | 41 namespace blink { |
| 43 | 42 |
| 44 class Animation; | 43 class Animation; |
| 45 class CompositorAnimation; | 44 class CompositorAnimation; |
| 46 class Element; | 45 class Element; |
| 47 class FloatBox; | 46 class FloatBox; |
| 48 class KeyframeEffectModelBase; | 47 class KeyframeEffectModelBase; |
| 49 | 48 |
| 50 class CORE_EXPORT CompositorAnimations { | 49 class CORE_EXPORT CompositorAnimations { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 70 double scaledDuration; | 69 double scaledDuration; |
| 71 double scaledTimeOffset; | 70 double scaledTimeOffset; |
| 72 double adjustedIterationCount; | 71 double adjustedIterationCount; |
| 73 double playbackRate; | 72 double playbackRate; |
| 74 Timing::FillMode fillMode; | 73 Timing::FillMode fillMode; |
| 75 double iterationStart; | 74 double iterationStart; |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 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); |
| 79 | 78 |
| 80 static void getAnimationOnCompositor(const Timing&, int group, double startT
ime, double timeOffset, const KeyframeEffectModelBase&, Vector<std::unique_ptr<C
ompositorAnimation>>& 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); |
| 81 }; | 80 }; |
| 82 | 81 |
| 83 } // namespace blink | 82 } // namespace blink |
| 84 | 83 |
| 85 #endif | 84 #endif |
| OLD | NEW |