// Copyright 2020 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 ASH_ACCESSIBILITY_POINT_SCAN_LAYER_ANIMATION_INFO_H_
#define ASH_ACCESSIBILITY_POINT_SCAN_LAYER_ANIMATION_INFO_H_

#include "base/time/time.h"

namespace ash {

struct PointScanLayerAnimationInfo {
  base::TimeTicks start_time;
  base::TimeTicks change_time;
  float offset = 0;
  float offset_bound = 0;
  float offset_start = 0;
  float animation_rate = 0;

  void Clear();
};

void ComputeOffset(PointScanLayerAnimationInfo* animation_info,
                   base::TimeTicks timestamp);

}  // namespace ash

#endif  // ASH_ACCESSIBILITY_POINT_SCAN_LAYER_ANIMATION_INFO_H_
