chromium/ui/base/prediction/linear_resampling.h

// 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 UI_BASE_PREDICTION_LINEAR_RESAMPLING_H_
#define UI_BASE_PREDICTION_LINEAR_RESAMPLING_H_

#include <deque>

#include "base/component_export.h"
#include "base/time/time.h"
#include "ui/base/prediction/input_predictor.h"

namespace ui {

// This class use linear extrapolates / interpolates to resample events to
// frame_time - kResampleLatency. This resampling logic is to match the
// resampling behavior on Android. It's not designed for pointerevent's
// PredictedEvent and should not be used for that purpose.
// Resampling on Android see:
// https://android.googlesource.com/platform/frameworks/native/+/master/libs/input/InputTransport.cpp
class COMPONENT_EXPORT(UI_BASE_PREDICTION) LinearResampling
    : public InputPredictor {};

}  // namespace ui

#endif  // UI_BASE_PREDICTION_LINEAR_RESAMPLING_H_