#include "ui/base/prediction/kalman_predictor.h"
#include <algorithm>
#include <cmath>
#include "base/numerics/angle_conversions.h"
#include "base/time/time.h"
#include "ui/base/ui_base_features.h"
namespace {
constexpr float kAccelerationInfluence = …;
constexpr float kVelocityInfluence = …;
}
namespace ui {
constexpr base::TimeDelta InputPredictor::kMaxTimeDelta;
constexpr base::TimeDelta InputPredictor::kMaxResampleTime;
constexpr base::TimeDelta InputPredictor::kMaxPredictionTime;
constexpr base::TimeDelta InputPredictor::kTimeInterval;
constexpr base::TimeDelta InputPredictor::kMinTimeInterval;
constexpr base::TimeDelta KalmanPredictor::kMaxTimeInQueue;
KalmanPredictor::KalmanPredictor(unsigned int prediction_options)
: … { … }
KalmanPredictor::~KalmanPredictor() = default;
const char* KalmanPredictor::GetName() const { … }
void KalmanPredictor::Reset() { … }
void KalmanPredictor::Update(const InputData& cur_input) { … }
bool KalmanPredictor::HasPrediction() const { … }
std::unique_ptr<InputPredictor::InputData> KalmanPredictor::GeneratePrediction(
base::TimeTicks predict_time,
base::TimeDelta frame_interval) { … }
base::TimeDelta KalmanPredictor::TimeInterval() const { … }
gfx::Vector2dF KalmanPredictor::PredictPosition() const { … }
gfx::Vector2dF KalmanPredictor::PredictVelocity() const { … }
gfx::Vector2dF KalmanPredictor::PredictAcceleration() const { … }
}