• Khushal's avatar
    canvas2d: Fix TextureLayer update tracking after canvas hibernation. · 74c51a8d
    Khushal authored
    Canvas2DLayerBridge keeps track of the current resource on the
    cc::TextureLayer to avoid unnecessary updates to the layer's resource if
    it was not updated. But it missed a case where the TextureLayer's
    resource was being cleared if the canvas is made invisible after
    hibernation.
    
    Avoid the above by simply asking the layer for its current resource
    instead of mirroring that state in Canvas2DLayerBridge and running into
    issues if we can't keep them consistent.
    
    R=enne@chromium.org,fserb@chromium.org
    
    Bug: 977474
    Change-Id: I6850115ffc019d7148a4dad40f97bb66029aa4d4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1680296Reviewed-by: default avatarFernando Serboncini <fserb@chromium.org>
    Commit-Queue: Fernando Serboncini <fserb@chromium.org>
    Auto-Submit: Khushal <khushalsagar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#673423}
    74c51a8d
texture_layer.h 8.82 KB