blob: c84381b14c5cee7928b02c8f2fa8d673143d6e70 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_CSS_COMPOSITOR_KEYFRAME_COLOR_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_CSS_COMPOSITOR_KEYFRAME_COLOR_H_
#include "third_party/blink/renderer/core/animation/css/compositor_keyframe_value.h"
#include "third_party/blink/renderer/core/core_export.h"
#include "third_party/skia/include/core/SkColor.h"
namespace blink {
class CORE_EXPORT CompositorKeyframeColor final
: public CompositorKeyframeValue {
public:
CompositorKeyframeColor(SkColor color) : color_(color) {}
~CompositorKeyframeColor() override = default;
SkColor ToColor() const { return color_; }
private:
Type GetType() const override { return Type::kColor; }
SkColor color_;
};
DEFINE_COMPOSITOR_KEYFRAME_VALUE_TYPE_CASTS(CompositorKeyframeColor, IsColor());
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_ANIMATION_CSS_COMPOSITOR_KEYFRAME_COLOR_H_