| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 KeyframeEffectModel::KeyframeVector m_keyframeVector5; | 76 KeyframeEffectModel::KeyframeVector m_keyframeVector5; |
| 77 RefPtr<KeyframeEffectModel> m_keyframeAnimationEffect5; | 77 RefPtr<KeyframeEffectModel> m_keyframeAnimationEffect5; |
| 78 | 78 |
| 79 virtual void SetUp() | 79 virtual void SetUp() |
| 80 { | 80 { |
| 81 AnimationCompositorAnimationsTestBase::SetUp(); | 81 AnimationCompositorAnimationsTestBase::SetUp(); |
| 82 | 82 |
| 83 m_linearTimingFunction = LinearTimingFunction::create(); | 83 m_linearTimingFunction = LinearTimingFunction::create(); |
| 84 m_cubicEaseTimingFunction = CubicBezierTimingFunction::preset(CubicBezie
rTimingFunction::Ease); | 84 m_cubicEaseTimingFunction = CubicBezierTimingFunction::preset(CubicBezie
rTimingFunction::Ease); |
| 85 m_cubicCustomTimingFunction = CubicBezierTimingFunction::create(1, 2, 3,
4); | 85 m_cubicCustomTimingFunction = CubicBezierTimingFunction::create(1, 2, 3,
4); |
| 86 m_stepTimingFunction = StepsTimingFunction::create(1, false); | 86 m_stepTimingFunction = StepsTimingFunction::create(1, StepsTimingFunctio
n::StepAtEnd); |
| 87 | 87 |
| 88 m_timing = createCompositableTiming(); | 88 m_timing = createCompositableTiming(); |
| 89 m_compositorTiming = CompositorAnimationsImpl::CompositorTiming(); | 89 m_compositorTiming = CompositorAnimationsImpl::CompositorTiming(); |
| 90 // Make sure the CompositableTiming is really compositable, otherwise | 90 // Make sure the CompositableTiming is really compositable, otherwise |
| 91 // most other tests will fail. | 91 // most other tests will fail. |
| 92 ASSERT(convertTimingForCompositor(m_timing, m_compositorTiming)); | 92 ASSERT(convertTimingForCompositor(m_timing, m_compositorTiming)); |
| 93 | 93 |
| 94 m_keyframeVector2 = createCompositableFloatKeyframeVector(2); | 94 m_keyframeVector2 = createCompositableFloatKeyframeVector(2); |
| 95 m_keyframeAnimationEffect2 = KeyframeEffectModel::create(m_keyframeVecto
r2); | 95 m_keyframeAnimationEffect2 = KeyframeEffectModel::create(m_keyframeVecto
r2); |
| 96 | 96 |
| (...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 // Go! | 1037 // Go! |
| 1038 setCompositorForTesting(mockCompositor); | 1038 setCompositorForTesting(mockCompositor); |
| 1039 Vector<OwnPtr<blink::WebAnimation> > result; | 1039 Vector<OwnPtr<blink::WebAnimation> > result; |
| 1040 getAnimationOnCompositor(m_timing, *effect.get(), result); | 1040 getAnimationOnCompositor(m_timing, *effect.get(), result); |
| 1041 EXPECT_EQ(1U, result.size()); | 1041 EXPECT_EQ(1U, result.size()); |
| 1042 result[0].clear(); | 1042 result[0].clear(); |
| 1043 } | 1043 } |
| 1044 | 1044 |
| 1045 | 1045 |
| 1046 } // namespace WebCore | 1046 } // namespace WebCore |
| OLD | NEW |