45 fuchsia::sysmem::AllocatorSyncPtr sysmem_allocator_;
46 fuchsia::ui::composition::AllocatorPtr flatland_allocator_;
47 std::vector<std::unique_ptr<VulkanSurface>> available_surfaces_;
48 std::unordered_map<uintptr_t, std::unique_ptr<VulkanSurface>>
51 size_t trace_surfaces_created_ = 0;
52 size_t trace_surfaces_reused_ = 0;
54 std::unique_ptr<VulkanSurface> GetCachedOrCreateSurface(
const SkISize& size);
56 void RecycleSurface(std::unique_ptr<VulkanSurface>
surface);
58 void RecyclePendingSurface(uintptr_t surface_key);