#include "third_party/blink/renderer/platform/widget/input/input_event_prediction.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/metrics/histogram_functions.h"
#include "third_party/blink/public/common/features.h"
namespace blink {
namespace {
const WebPointerProperties* ToWebPointerProperties(const WebInputEvent* event) { … }
WebPointerProperties* ToWebPointerProperties(WebInputEvent* event) { … }
}
InputEventPrediction::InputEventPrediction(bool enable_resampling)
: … { … }
InputEventPrediction::~InputEventPrediction() { … }
void InputEventPrediction::HandleEvents(
blink::WebCoalescedInputEvent& coalesced_event,
base::TimeTicks frame_time) { … }
std::unique_ptr<ui::InputPredictor> InputEventPrediction::CreatePredictor()
const { … }
void InputEventPrediction::UpdatePrediction(const WebInputEvent& event) { … }
void InputEventPrediction::ApplyResampling(base::TimeTicks frame_time,
WebInputEvent* event) { … }
void InputEventPrediction::ResetPredictor(const WebInputEvent& event) { … }
void InputEventPrediction::AddPredictedEvents(
blink::WebCoalescedInputEvent& coalesced_event) { … }
ui::InputPredictor* InputEventPrediction::GetPredictor(
const WebPointerProperties& event) const { … }
base::TimeDelta InputEventPrediction::GetPredictionTimeInterval(
const WebPointerProperties& event) const { … }
void InputEventPrediction::UpdateSinglePointer(
const WebPointerProperties& event,
base::TimeTicks event_time) { … }
bool InputEventPrediction::GetPointerPrediction(base::TimeTicks predict_time,
WebPointerProperties* event) { … }
void InputEventPrediction::ResetSinglePredictor(
const WebPointerProperties& event) { … }
}