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

Side by Side Diff: webkit/compositor/WebAnimationCurveCommon.cpp

Issue 10920056: Make cc_unittests and webkit_compositor_unittests executable always (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename to webkit_compositor_bindings Created 8 years, 3 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
« no previous file with comments | « webkit/compositor/WebAnimationCurveCommon.h ('k') | webkit/compositor/WebAnimationImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "config.h"
6
7 #include "WebAnimationCurveCommon.h"
8
9 #include "CCTimingFunction.h"
10
11 #include <wtf/OwnPtr.h>
12 #include <wtf/PassOwnPtr.h>
13
14 namespace WebKit {
15
16 PassOwnPtr<WebCore::CCTimingFunction> createTimingFunction(WebAnimationCurve::Ti mingFunctionType type)
17 {
18 switch (type) {
19 case WebAnimationCurve::TimingFunctionTypeEase:
20 return WebCore::CCEaseTimingFunction::create();
21 case WebAnimationCurve::TimingFunctionTypeEaseIn:
22 return WebCore::CCEaseInTimingFunction::create();
23 case WebAnimationCurve::TimingFunctionTypeEaseOut:
24 return WebCore::CCEaseOutTimingFunction::create();
25 case WebAnimationCurve::TimingFunctionTypeEaseInOut:
26 return WebCore::CCEaseInOutTimingFunction::create();
27 case WebAnimationCurve::TimingFunctionTypeLinear:
28 return nullptr;
29 }
30 return nullptr;
31 }
32
33 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/compositor/WebAnimationCurveCommon.h ('k') | webkit/compositor/WebAnimationImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698