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

Side by Side Diff: cc/blink/web_animation_curve_common.cc

Issue 609663003: cc: Remove use of PassAs() and constructor-casting with scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cc-passas: PassAs-presubmit-warning Created 6 years, 2 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
« no previous file with comments | « cc/base/scoped_ptr_vector.h ('k') | cc/blink/web_filter_animation_curve_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "cc/blink/web_animation_curve_common.h" 5 #include "cc/blink/web_animation_curve_common.h"
6 6
7 #include "cc/animation/timing_function.h" 7 #include "cc/animation/timing_function.h"
8 8
9 namespace cc_blink { 9 namespace cc_blink {
10 10
11 scoped_ptr<cc::TimingFunction> CreateTimingFunction( 11 scoped_ptr<cc::TimingFunction> CreateTimingFunction(
12 blink::WebCompositorAnimationCurve::TimingFunctionType type) { 12 blink::WebCompositorAnimationCurve::TimingFunctionType type) {
13 switch (type) { 13 switch (type) {
14 case blink::WebCompositorAnimationCurve::TimingFunctionTypeEase: 14 case blink::WebCompositorAnimationCurve::TimingFunctionTypeEase:
15 return cc::EaseTimingFunction::Create(); 15 return cc::EaseTimingFunction::Create();
16 case blink::WebCompositorAnimationCurve::TimingFunctionTypeEaseIn: 16 case blink::WebCompositorAnimationCurve::TimingFunctionTypeEaseIn:
17 return cc::EaseInTimingFunction::Create(); 17 return cc::EaseInTimingFunction::Create();
18 case blink::WebCompositorAnimationCurve::TimingFunctionTypeEaseOut: 18 case blink::WebCompositorAnimationCurve::TimingFunctionTypeEaseOut:
19 return cc::EaseOutTimingFunction::Create(); 19 return cc::EaseOutTimingFunction::Create();
20 case blink::WebCompositorAnimationCurve::TimingFunctionTypeEaseInOut: 20 case blink::WebCompositorAnimationCurve::TimingFunctionTypeEaseInOut:
21 return cc::EaseInOutTimingFunction::Create(); 21 return cc::EaseInOutTimingFunction::Create();
22 case blink::WebCompositorAnimationCurve::TimingFunctionTypeLinear: 22 case blink::WebCompositorAnimationCurve::TimingFunctionTypeLinear:
23 return scoped_ptr<cc::TimingFunction>(); 23 return nullptr;
24 } 24 }
25 return scoped_ptr<cc::TimingFunction>(); 25 return nullptr;
26 } 26 }
27 27
28 } // namespace cc_blink 28 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/base/scoped_ptr_vector.h ('k') | cc/blink/web_filter_animation_curve_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698