mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
part of https://github.com/flutter/flutter/issues/138798 Works around https://github.com/flutter/flutter/issues/144498 for the glyph atlas. Adds BlitPass::AddCopy implementation for GLES, which is mostly a copy of Texture::SetContents. Updates the glyph atlas to use a blit pass and device private textures instead of set contents (which is unsafely on Metal). This also removes DeviceBuffer::AsTexture, which isn't actually used anywhere - and creates a linear texture on iOS (and fails with an unsupported API on simulators). Note that in general, we don't actually have support for hostVisible textures on GLES _or_ Vulkan. Instead, VMA is falling back to device private textures. We may want to, separately, remove the concept of host visible from textures - and similarly remove the concept of transient from buffers.