Use ui::LayerOwner for holding space tray icon previews
Instead of HoldingSpaceTrayIconPreview owning the image layer directly, delegate the layer ownership to a ui::LayerOwner. Unlike HoldingSpaceTrayIconPreview, LayerOwner has logic to recreate the layer when required. For example, when the layer tree was copied during transition to tablet mode, the HoldingSpaceTrayIconPreview layers were just moved to the new layer, causing the layer copy shown during the tablet mode transition not to have item previews. BUG=1166013 Change-Id: I17322043167e3275d6c9297617c90de834fb912e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2629029 Commit-Queue: Toni Baržić <tbarzic@chromium.org> Reviewed-by:David Black <dmblack@google.com> Cr-Commit-Position: refs/heads/master@{#843724}
Showing
Please register or sign in to comment