
Modify the way SkiaGraphiteImageRepresentation creates graphite's BackendTexture holders: - The default implementation creates non-owning holders that are not safe to be used outside the access' scope. - If the backing is D3DImageBacking, the created holders will contain a ref to the shared texture memory cache and the persistent graphite access. This is to keep the cached texture and its persistent access alive even if the backing is destroyed. Bug: 354940781 Bug: 354942507 Change-Id: I4c73c1baba5fb49337b5e8485e113fefab3c61a7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6290631 Reviewed-by: Saifuddin Hitawala <hitawala@chromium.org> Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org> Commit-Queue: Quyen Le <lehoangquyen@chromium.org> Cr-Commit-Position: refs/heads/main@{#1426565}