• alokp@chromium.org's avatar
    Record SkPicture with correct LCD text setting. · 36df0635
    alokp@chromium.org authored
    We used to always recorded with LCD ON and if needed disabled it with an
    SkFilter during rasterization. This is wasteful on platforms where LCD
    text is always disabled. This patch records SkPicture with correct
    setting. One downside to this approach is that we would need to
    invalidate and record anytime the LCD text setting changes. But since
    this can only happen once for a layer (all future changes are ignored),
    this is not going to be a big performance issue.
    
    On the positive side, this patch will simplify a lot of things on the
    rasterization front - no SkDrawFilter, or LCD text tile versions, or
    a special rasterization mode for disable LCD.
    
    BUG=368513
    
    Review URL: https://codereview.chromium.org/315393002
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276785 0039d316-1c4b-4281-b951-d872f2087c98
    36df0635
picture_layer.h 2.34 KB