canvas2d: Fix TextureLayer update tracking after canvas hibernation.
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:Fernando Serboncini <fserb@chromium.org> Commit-Queue: Fernando Serboncini <fserb@chromium.org> Auto-Submit: Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#673423}
Showing
Please register or sign in to comment