Pass CreateDirectory errors up to IndexedDB.
[chromium-blink-merge.git] / cc / animation / animation_curve.cc
blob05cda9bd0fb6002e7b4b21471c2487459b046cf7
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.
5 #include "cc/animation/animation_curve.h"
7 #include "base/logging.h"
9 namespace cc {
11 const FloatAnimationCurve* AnimationCurve::ToFloatAnimationCurve() const {
12 DCHECK(Type() == AnimationCurve::Float);
13 return static_cast<const FloatAnimationCurve*>(this);
16 AnimationCurve::CurveType FloatAnimationCurve::Type() const {
17 return Float;
20 const TransformAnimationCurve* AnimationCurve::ToTransformAnimationCurve()
21 const {
22 DCHECK(Type() == AnimationCurve::Transform);
23 return static_cast<const TransformAnimationCurve*>(this);
26 AnimationCurve::CurveType TransformAnimationCurve::Type() const {
27 return Transform;
30 } // namespace cc