chromium/ui/base/prediction/kalman_predictor.cc

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

#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 {

// Influence of acceleration during each prediction sample
constexpr float kAccelerationInfluence =;
// Influence of velocity during each prediction sample
constexpr float kVelocityInfluence =;

}  // namespace

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 {}

}  // namespace ui