9 #include "flutter/fml/macros.h"
19 public BackendCast<DeviceBufferGLES, DeviceBuffer> {
23 std::shared_ptr<Allocation> backing_store);
31 const std::function<
void(uint8_t*,
size_t length)>& update_buffer_data);
43 mutable std::shared_ptr<Allocation> backing_store_;
44 mutable uint32_t generation_ = 0;
45 mutable uint32_t upload_generation_ = 0;
48 uint8_t* OnGetContents()
const override;
51 bool OnCopyHostBuffer(
const uint8_t* source,
53 size_t offset)
override;
56 bool SetLabel(
const std::string& label)
override;
59 bool SetLabel(
const std::string& label,
Range range)
override;