blob: 08ed28a16237179471d197cd55de6ea448d30c05 [file] [log] [blame]
// Copyright 2016 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_PLATFORM_ANIMATION_COMPOSITOR_FILTER_KEYFRAME_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_ANIMATION_COMPOSITOR_FILTER_KEYFRAME_H_
#include "base/macros.h"
#include "cc/animation/filter_animation_curve.h"
#include "third_party/blink/renderer/platform/animation/compositor_keyframe.h"
#include "third_party/blink/renderer/platform/graphics/compositor_filter_operations.h"
#include "third_party/blink/renderer/platform/platform_export.h"
namespace blink {
class TimingFunction;
class PLATFORM_EXPORT CompositorFilterKeyframe : public CompositorKeyframe {
public:
CompositorFilterKeyframe(double time,
CompositorFilterOperations value,
const TimingFunction&);
~CompositorFilterKeyframe() override;
std::unique_ptr<cc::FilterKeyframe> CloneToCC() const;
// CompositorKeyframe implementation.
double Time() const override;
const gfx::TimingFunction* CcTimingFunction() const override;
private:
std::unique_ptr<cc::FilterKeyframe> filter_keyframe_;
DISALLOW_COPY_AND_ASSIGN(CompositorFilterKeyframe);
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_PLATFORM_ANIMATION_COMPOSITOR_FILTER_KEYFRAME_H_