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

Side by Side Diff: third_party/WebKit/Source/platform/animation/CompositorAnimation.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "platform/animation/CompositorAnimation.h" 5 #include "platform/animation/CompositorAnimation.h"
6 6
7 #include <memory>
7 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
8 #include "cc/animation/animation_curve.h" 9 #include "cc/animation/animation_curve.h"
9 #include "cc/animation/animation_id_provider.h" 10 #include "cc/animation/animation_id_provider.h"
10 #include "cc/animation/keyframed_animation_curve.h" 11 #include "cc/animation/keyframed_animation_curve.h"
11 #include "platform/animation/CompositorAnimationCurve.h" 12 #include "platform/animation/CompositorAnimationCurve.h"
12 #include "platform/animation/CompositorFilterAnimationCurve.h" 13 #include "platform/animation/CompositorFilterAnimationCurve.h"
13 #include "platform/animation/CompositorFloatAnimationCurve.h" 14 #include "platform/animation/CompositorFloatAnimationCurve.h"
14 #include "platform/animation/CompositorScrollOffsetAnimationCurve.h" 15 #include "platform/animation/CompositorScrollOffsetAnimationCurve.h"
15 #include "platform/animation/CompositorTransformAnimationCurve.h" 16 #include "platform/animation/CompositorTransformAnimationCurve.h"
16 #include <memory>
17 17
18 using cc::Animation; 18 using cc::Animation;
19 using cc::AnimationIdProvider; 19 using cc::AnimationIdProvider;
20 20
21 using blink::CompositorAnimation; 21 using blink::CompositorAnimation;
22 using blink::CompositorAnimationCurve; 22 using blink::CompositorAnimationCurve;
23 23
24 namespace blink { 24 namespace blink {
25 25
26 CompositorAnimation::CompositorAnimation( 26 CompositorAnimation::CompositorAnimation(
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const cc::AnimationCurve* curve = m_animation->curve(); 119 const cc::AnimationCurve* curve = m_animation->curve();
120 DCHECK_EQ(cc::AnimationCurve::FLOAT, curve->Type()); 120 DCHECK_EQ(cc::AnimationCurve::FLOAT, curve->Type());
121 121
122 auto keyframedCurve = base::WrapUnique( 122 auto keyframedCurve = base::WrapUnique(
123 static_cast<cc::KeyframedFloatAnimationCurve*>(curve->Clone().release())); 123 static_cast<cc::KeyframedFloatAnimationCurve*>(curve->Clone().release()));
124 return CompositorFloatAnimationCurve::createForTesting( 124 return CompositorFloatAnimationCurve::createForTesting(
125 std::move(keyframedCurve)); 125 std::move(keyframedCurve));
126 } 126 }
127 127
128 } // namespace blink 128 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698