5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_BUFFER_VK_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_BUFFER_VK_H_
10 #include "flutter/fml/macros.h"
11 #include "flutter/fml/trace_event.h"
24 std::weak_ptr<Context> context,
26 VmaAllocationInfo info);
38 VmaAllocationInfo info = {};
43 : buffer(
std::move(p_buffer)), info(p_info) {}
46 std::swap(o.buffer, buffer);
47 std::swap(o.info, info);
55 std::weak_ptr<Context> context_;
56 UniqueResourceVKT<BufferResource> resource_;
59 uint8_t* OnGetContents()
const override;
62 bool OnCopyHostBuffer(
const uint8_t* source,
64 size_t offset)
override;
67 bool SetLabel(
const std::string& label)
override;
70 bool SetLabel(
const std::string& label, Range range)
override;
79 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEVICE_BUFFER_VK_H_