1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25

cc / trees / animation_effect_timings.h [blame]

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CC_TREES_ANIMATION_EFFECT_TIMINGS_H_
#define CC_TREES_ANIMATION_EFFECT_TIMINGS_H_

#include <memory>

#include "cc/cc_export.h"

namespace cc {

// This class acts as opaque handle in cc while the actual implementation lives
// in blink. It is meant to facilitate plumbing the effect timings from blink
// main thread to worklet thread via cc animations machinery.
class CC_EXPORT AnimationEffectTimings {
 public:
  virtual ~AnimationEffectTimings() = default;
  virtual std::unique_ptr<AnimationEffectTimings> Clone() const = 0;
};

}  // namespace cc

#endif  // CC_TREES_ANIMATION_EFFECT_TIMINGS_H_