5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_TRACKED_OBJECTS_VK_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_TRACKED_OBJECTS_VK_H_
22 const std::shared_ptr<CommandPoolVK>& pool,
23 std::unique_ptr<GPUProbe> probe);
29 void Track(std::shared_ptr<SharedObjectVK>
object);
31 void Track(std::shared_ptr<const DeviceBuffer> buffer);
33 bool IsTracking(
const std::shared_ptr<const DeviceBuffer>& buffer)
const;
35 void Track(std::shared_ptr<const TextureSourceVK> texture);
37 bool IsTracking(
const std::shared_ptr<const TextureSourceVK>& texture)
const;
48 std::shared_ptr<CommandPoolVK> pool_;
49 vk::UniqueCommandBuffer buffer_;
50 std::set<std::shared_ptr<SharedObjectVK>> tracked_objects_;
51 std::set<std::shared_ptr<const DeviceBuffer>> tracked_buffers_;
52 std::set<std::shared_ptr<const TextureSourceVK>> tracked_textures_;
53 std::unique_ptr<GPUProbe> probe_;
54 bool is_valid_ =
false;
63 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_TRACKED_OBJECTS_VK_H_