Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: Source/core/animation/CompositorAnimationsTest.cpp

Issue 651103002: Web Animations: Compositor start notification should only apply to animations in a matching group (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/animation/CompositorAnimationsImpl.h ('k') | Source/core/animation/CompositorPendingAnimations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698