Commit 4cf06cb0 authored by Jeremy Apthorp's avatar Jeremy Apthorp Committed by Commit Bot

include <algorithm> for std::min in MSSTL

fixes this build error in MSSTL:

../../ui/events/blink/prediction/linear_resampling.cc(82,12): error: no member named 'min' in namespace 'std'

      std::min(kResampleMaxPrediction, events_dt_ / 2.0);
      ~~~~~^
../../ui/events/blink/prediction/linear_resampling.cc(85,12): error: no member named 'min' in namespace 'std'
      std::min(sample_time, events_queue_[0].time_stamp + max_prediction);
      ~~~~~^
2 errors generated.

Change-Id: I412007ebe847afaa667bb606c01e2d5453123089
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1893754Reviewed-by: default avatarDavid Bokan <bokan@chromium.org>
Commit-Queue: David Bokan <bokan@chromium.org>
Auto-Submit: Jeremy Apthorp <jeremya@chromium.org>
Cr-Commit-Position: refs/heads/master@{#711851}
parent 31c478b3
......@@ -5,6 +5,8 @@
#include "ui/events/blink/prediction/least_squares_predictor.h"
#include "ui/events/blink/prediction/predictor_factory.h"
#include <algorithm>
namespace ui {
namespace {
......
......@@ -5,6 +5,8 @@
#include "ui/events/blink/prediction/linear_predictor.h"
#include "ui/events/blink/prediction/predictor_factory.h"
#include <algorithm>
namespace ui {
LinearPredictor::LinearPredictor(EquationOrder order) {
......
......@@ -4,6 +4,8 @@
#include "ui/events/blink/prediction/linear_resampling.h"
#include <algorithm>
#include "ui/events/blink/prediction/predictor_factory.h"
namespace ui {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment