You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new PreloadingPredictor for "eager" viewport heuristics
This CL introduces a new `preloading_predictor` for viewport-based
heuristics that operate with "eager" eagerness settings.
To differentiate this from the existing viewport predictor (which
operates at "moderate" eagerness), the following changes are made:
* The existing `preloading_predictor::kViewportHeuristic` is renamed to `kModerateViewportHeuristic`.
* A new `preloading_predictor::kEagerViewportHeuristic` is added.
* `PreloadingDecider` is updated to configure and handle both predictors independently, associating each with its respective eagerness level and feature flag.
Note that the string-serialized name of `kModerateViewportHeuristic` is
kept "ViewportHeuristic" for the metrics compatibility.
Bug: 436705485
Change-Id: I56591a74dea99bbf6066f5b2b12443ba0d5d9425
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7053023
Commit-Queue: Takashi Nakayama <[email protected]>
Reviewed-by: Rakina Zata Amni <[email protected]>
Reviewed-by: Hiroki Nakagawa <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1532383}
0 commit comments