blink/canvas: Ensure constant PaintImage::ContentId for canvas snapshots.
Its important for Canvas snapshots to have a constant PaintImage::ContentId to get a cache-hit in cc's ImageDecodeCache. The logic was missing the case where the CanvasResourceProvider has a valid ContextProvider but is still using software raster, thus creating bitmaps which were being allocated new ids. R=fserb@chromium.org Bug: 868369, 872117 Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_slimming_paint_v2;master.tryserver.blink:linux_trusty_blink_rel Change-Id: Iadc76f35483c0aed9c31aba38a7808aee1dc8863 Reviewed-on: https://chromium-review.googlesource.com/1180423Reviewed-by:Fernando Serboncini <fserb@chromium.org> Commit-Queue: Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#584588}
Showing
Please register or sign in to comment