This source file includes following definitions.
- CreateTimingFunction
#include "webkit/renderer/compositor_bindings/web_animation_curve_common.h"
#include "cc/animation/timing_function.h"
namespace webkit {
scoped_ptr<cc::TimingFunction> CreateTimingFunction(
blink::WebAnimationCurve::TimingFunctionType type) {
switch (type) {
case blink::WebAnimationCurve::TimingFunctionTypeEase:
return cc::EaseTimingFunction::Create();
case blink::WebAnimationCurve::TimingFunctionTypeEaseIn:
return cc::EaseInTimingFunction::Create();
case blink::WebAnimationCurve::TimingFunctionTypeEaseOut:
return cc::EaseOutTimingFunction::Create();
case blink::WebAnimationCurve::TimingFunctionTypeEaseInOut:
return cc::EaseInOutTimingFunction::Create();
case blink::WebAnimationCurve::TimingFunctionTypeLinear:
return scoped_ptr<cc::TimingFunction>();
}
return scoped_ptr<cc::TimingFunction>();
}
}