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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 bool isCandidateForAnimationOnCompositor(const Timing& timing, const Animati
onEffect& effect) | 106 bool isCandidateForAnimationOnCompositor(const Timing& timing, const Animati
onEffect& effect) |
107 { | 107 { |
108 return CompositorAnimations::instance()->isCandidateForAnimationOnCompos
itor(timing, effect, 1); | 108 return CompositorAnimations::instance()->isCandidateForAnimationOnCompos
itor(timing, effect, 1); |
109 } | 109 } |
110 void getAnimationOnCompositor(Timing& timing, AnimatableValueKeyframeEffectM
odel& effect, Vector<OwnPtr<WebCompositorAnimation> >& animations) | 110 void getAnimationOnCompositor(Timing& timing, AnimatableValueKeyframeEffectM
odel& effect, Vector<OwnPtr<WebCompositorAnimation> >& animations) |
111 { | 111 { |
112 return getAnimationOnCompositor(timing, effect, animations, 1); | 112 return getAnimationOnCompositor(timing, effect, animations, 1); |
113 } | 113 } |
114 void getAnimationOnCompositor(Timing& timing, AnimatableValueKeyframeEffectM
odel& effect, Vector<OwnPtr<WebCompositorAnimation> >& animations, double player
PlaybackRate) | 114 void getAnimationOnCompositor(Timing& timing, AnimatableValueKeyframeEffectM
odel& effect, Vector<OwnPtr<WebCompositorAnimation> >& animations, double player
PlaybackRate) |
115 { | 115 { |
116 return CompositorAnimationsImpl::getAnimationOnCompositor(timing, std::n
umeric_limits<double>::quiet_NaN(), 0, effect, animations, playerPlaybackRate); | 116 return CompositorAnimationsImpl::getAnimationOnCompositor(timing, 0, std
::numeric_limits<double>::quiet_NaN(), 0, effect, animations, playerPlaybackRate
); |
117 } | 117 } |
118 bool getAnimationBounds(FloatBox& boundingBox, const AnimationEffect& effect
, double minValue, double maxValue) | 118 bool getAnimationBounds(FloatBox& boundingBox, const AnimationEffect& effect
, double minValue, double maxValue) |
119 { | 119 { |
120 return CompositorAnimations::instance()->getAnimatedBoundingBox(bounding
Box, effect, minValue, maxValue); | 120 return CompositorAnimations::instance()->getAnimatedBoundingBox(bounding
Box, effect, minValue, maxValue); |
121 } | 121 } |
122 | 122 |
123 bool duplicateSingleKeyframeAndTestIsCandidateOnResult(AnimatableValueKeyfra
me* frame) | 123 bool duplicateSingleKeyframeAndTestIsCandidateOnResult(AnimatableValueKeyfra
me* frame) |
124 { | 124 { |
125 EXPECT_EQ(frame->offset(), 0); | 125 EXPECT_EQ(frame->offset(), 0); |
126 AnimatableValueKeyframeVector frames; | 126 AnimatableValueKeyframeVector frames; |
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1099 | 1099 |
1100 // Go! | 1100 // Go! |
1101 setCompositorForTesting(mockCompositor); | 1101 setCompositorForTesting(mockCompositor); |
1102 Vector<OwnPtr<WebCompositorAnimation> > result; | 1102 Vector<OwnPtr<WebCompositorAnimation> > result; |
1103 getAnimationOnCompositor(m_timing, *effect.get(), result); | 1103 getAnimationOnCompositor(m_timing, *effect.get(), result); |
1104 EXPECT_EQ(1U, result.size()); | 1104 EXPECT_EQ(1U, result.size()); |
1105 result[0].clear(); | 1105 result[0].clear(); |
1106 } | 1106 } |
1107 | 1107 |
1108 } // namespace blink | 1108 } // namespace blink |
OLD | NEW |