| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "CCTimingFunction.h" | 7 #include "CCTimingFunction.h" |
| 8 | 8 |
| 9 #include <wtf/OwnPtr.h> | 9 #include <wtf/OwnPtr.h> |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 const double epsilon = 1e-6; | 12 const double epsilon = 1e-6; |
| 13 } // namespace | 13 } // namespace |
| 14 | 14 |
| 15 namespace WebCore { | 15 namespace cc { |
| 16 | 16 |
| 17 CCTimingFunction::CCTimingFunction() | 17 CCTimingFunction::CCTimingFunction() |
| 18 { | 18 { |
| 19 } | 19 } |
| 20 | 20 |
| 21 CCTimingFunction::~CCTimingFunction() | 21 CCTimingFunction::~CCTimingFunction() |
| 22 { | 22 { |
| 23 } | 23 } |
| 24 | 24 |
| 25 double CCTimingFunction::duration() const | 25 double CCTimingFunction::duration() const |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 PassOwnPtr<CCTimingFunction> CCEaseOutTimingFunction::create() | 66 PassOwnPtr<CCTimingFunction> CCEaseOutTimingFunction::create() |
| 67 { | 67 { |
| 68 return CCCubicBezierTimingFunction::create(0, 0, 0.58, 1); | 68 return CCCubicBezierTimingFunction::create(0, 0, 0.58, 1); |
| 69 } | 69 } |
| 70 | 70 |
| 71 PassOwnPtr<CCTimingFunction> CCEaseInOutTimingFunction::create() | 71 PassOwnPtr<CCTimingFunction> CCEaseInOutTimingFunction::create() |
| 72 { | 72 { |
| 73 return CCCubicBezierTimingFunction::create(0.42, 0, 0.58, 1); | 73 return CCCubicBezierTimingFunction::create(0.42, 0, 0.58, 1); |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace WebCore | 76 } // namespace cc |
| OLD | NEW |