• Xianzhu Wang's avatar
    Force raster scale update on viewport rect change during animation · 118640fa
    Xianzhu Wang authored
    We clamp raster scale during animation by the device viewport size, so
    we need to force raster scale update on device viewport rect change.
    
    This is expecially important for remote frames which have zero device
    viewport size initially, and the size is the frame size instead of the
    actual device viewport. This happens in the testing frame on codepen
    etc.
    
    Also limit the minimum viewport geometry to avoid too small scale in
    small remote frames.
    
    Bug: 1164960
    Change-Id: Idb1cfeb878fde76252a467bf8aca8c97ef506c6e
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2623720Reviewed-by: default avatarvmpstr <vmpstr@chromium.org>
    Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#842710}
    118640fa
picture_layer_impl_unittest.cc 258 KB