| 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 29 matching lines...) Expand all Loading... |
| 40 #include "wtf/Allocator.h" | 40 #include "wtf/Allocator.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 class WebCompositorAnimationCurve; | 44 class WebCompositorAnimationCurve; |
| 45 | 45 |
| 46 class CORE_EXPORT CompositorAnimationsImpl { | 46 class CORE_EXPORT CompositorAnimationsImpl { |
| 47 STATIC_ONLY(CompositorAnimationsImpl); | 47 STATIC_ONLY(CompositorAnimationsImpl); |
| 48 private: | 48 private: |
| 49 struct CompositorTiming { | 49 struct CompositorTiming { |
| 50 DISALLOW_ALLOCATION(); | 50 DISALLOW_NEW(); |
| 51 void assertValid() const | 51 void assertValid() const |
| 52 { | 52 { |
| 53 ASSERT(scaledDuration > 0); | 53 ASSERT(scaledDuration > 0); |
| 54 ASSERT(std::isfinite(scaledTimeOffset)); | 54 ASSERT(std::isfinite(scaledTimeOffset)); |
| 55 ASSERT(adjustedIterationCount > 0 || adjustedIterationCount == -1); | 55 ASSERT(adjustedIterationCount > 0 || adjustedIterationCount == -1); |
| 56 ASSERT(std::isfinite(playbackRate) && playbackRate); | 56 ASSERT(std::isfinite(playbackRate) && playbackRate); |
| 57 ASSERT(iterationStart >= 0); | 57 ASSERT(iterationStart >= 0); |
| 58 } | 58 } |
| 59 | 59 |
| 60 Timing::PlaybackDirection direction; | 60 Timing::PlaybackDirection direction; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 72 | 72 |
| 73 static void addKeyframesToCurve(WebCompositorAnimationCurve&, const Animatab
leValuePropertySpecificKeyframeVector&, const Timing&); | 73 static void addKeyframesToCurve(WebCompositorAnimationCurve&, const Animatab
leValuePropertySpecificKeyframeVector&, const Timing&); |
| 74 | 74 |
| 75 friend class CompositorAnimations; | 75 friend class CompositorAnimations; |
| 76 friend class AnimationCompositorAnimationsTest; | 76 friend class AnimationCompositorAnimationsTest; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace blink | 79 } // namespace blink |
| 80 | 80 |
| 81 #endif | 81 #endif |
| OLD | NEW |