summaryrefslogtreecommitdiffstats
path: root/cc/animation/layer_animation_value_provider.h
blob: 219afb2f7884fc0ec49b5deb015878ea6fcc8508 (plain)
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
26
27
28
// Copyright 2013 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 CC_ANIMATION_LAYER_ANIMATION_VALUE_PROVIDER_H_
#define CC_ANIMATION_LAYER_ANIMATION_VALUE_PROVIDER_H_

#include "cc/base/cc_export.h"

namespace gfx {
class ScrollOffset;
}

namespace cc {

// A LayerAnimationValueProvider is used for determining the starting value
// for animations that start at their 'current' value rather than at a
// pre-specified value.
class CC_EXPORT LayerAnimationValueProvider {
 public:
  virtual ~LayerAnimationValueProvider() {}

  virtual gfx::ScrollOffset ScrollOffsetForAnimation() const = 0;
};

}  // namespace cc

#endif  // CC_ANIMATION_LAYER_ANIMATION_VALUE_PROVIDER_H_