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

Side by Side Diff: webkit/compositor_bindings/web_animation_curve_common.cc

Issue 14651027: Move webkit/compositor_bindings into webkit/renderer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "webkit/compositor_bindings/web_animation_curve_common.h"
6
7 #include "cc/animation/timing_function.h"
8
9 namespace webkit {
10
11 scoped_ptr<cc::TimingFunction> CreateTimingFunction(
12 WebKit::WebAnimationCurve::TimingFunctionType type) {
13 switch (type) {
14 case WebKit::WebAnimationCurve::TimingFunctionTypeEase:
15 return cc::EaseTimingFunction::Create();
16 case WebKit::WebAnimationCurve::TimingFunctionTypeEaseIn:
17 return cc::EaseInTimingFunction::Create();
18 case WebKit::WebAnimationCurve::TimingFunctionTypeEaseOut:
19 return cc::EaseOutTimingFunction::Create();
20 case WebKit::WebAnimationCurve::TimingFunctionTypeEaseInOut:
21 return cc::EaseInOutTimingFunction::Create();
22 case WebKit::WebAnimationCurve::TimingFunctionTypeLinear:
23 return scoped_ptr<cc::TimingFunction>();
24 }
25 return scoped_ptr<cc::TimingFunction>();
26 }
27
28 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_animation_curve_common.h ('k') | webkit/compositor_bindings/web_animation_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698