• Xianzhu Wang's avatar
    Avoid unnecessary tiling invalidation on LCD text changes · 6f9f402c
    Xianzhu Wang authored
    Don't invalidate tiling:
    - when LCDTextDisallowedReason changes from one reason to another
      as long as PicureLayerImpl::can_use_lcd_text() is the same as
      HighResTiling()->can_use_lcd_text().
    - if there is no text, but keep the high res tiling with the existing
      LCD text and raster translation they don't matter without text.
    
    This doesn't fix the root cause of the bug (crrev.com/c/2411492 by
    vmpstr@ does), but is just a performance improvement.
    
    Bug: 1127803
    Change-Id: I2dfd9523b32cc4a3de828892e726514f3186151f
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2410580
    Commit-Queue: vmpstr <vmpstr@chromium.org>
    Reviewed-by: default avatarvmpstr <vmpstr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#807033}
    6f9f402c
picture_layer_impl.h 12 KB