Fix video-poster-load-after-playing.html for scheduler change
We want to prioritize loading and compositing tasks until first contentful paint. This breaks video-poster-load-after-playing.html because that (introduces?) a race between blink::HTMLVideoElement::SetDisplayMode which sets displaymode kPoster and blink::LayoutVideo::ImageChanged() posted on frame_loading_tq which only caches the image size if the display mode is kPoster. When loading tasks are prioritized this doesn't happen causing the image to get stretched. This patch changes the code to additionally cache the image size if it's not set, which fixes the problem with the test with the new scheduler policy. Bug: 971191 Change-Id: Ic72d310c99d747258e7523fc069758538b35a337 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1787602 Commit-Queue: Alex Clarke <alexclarke@chromium.org> Reviewed-by:Philip Rogers <pdr@chromium.org> Reviewed-by:
Alexander Timin <altimin@chromium.org> Cr-Commit-Position: refs/heads/master@{#695105}
Showing
Please register or sign in to comment