5#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DEVICE_BUFFER_GLES_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DEVICE_BUFFER_GLES_H_
20 public BackendCast<DeviceBufferGLES, DeviceBuffer> {
24 std::shared_ptr<Allocation> backing_store);
32 const std::function<
void(uint8_t*,
size_t length)>& update_buffer_data);
41 void Flush(std::optional<Range> range = std::nullopt)
const override;
46 mutable std::shared_ptr<Allocation> backing_store_;
47 mutable uint32_t generation_ = 0;
48 mutable uint32_t upload_generation_ = 0;
59 bool SetLabel(
const std::string& label)
override;
62 bool SetLabel(
const std::string& label,
Range range)
override;
void Flush(std::optional< Range > range=std::nullopt) const override
void UpdateBufferData(const std::function< void(uint8_t *, size_t length)> &update_buffer_data)
uint8_t * OnGetContents() const override
bool BindAndUploadDataIfNecessary(BindingType type) const
bool SetLabel(const std::string &label) override
~DeviceBufferGLES() override
bool OnCopyHostBuffer(const uint8_t *source, Range source_range, size_t offset) override
const uint8_t * GetBufferData() const
std::shared_ptr< ReactorGLES > Ref