5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DEVICE_BUFFER_GLES_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DEVICE_BUFFER_GLES_H_
11 #include "flutter/fml/macros.h"
21 public BackendCast<DeviceBufferGLES, DeviceBuffer> {
25 std::shared_ptr<Allocation> backing_store);
33 const std::function<
void(uint8_t*,
size_t length)>& update_buffer_data);
45 mutable std::shared_ptr<Allocation> backing_store_;
46 mutable uint32_t generation_ = 0;
47 mutable uint32_t upload_generation_ = 0;
50 uint8_t* OnGetContents()
const override;
53 bool OnCopyHostBuffer(
const uint8_t* source,
55 size_t offset)
override;
58 bool SetLabel(
const std::string& label)
override;
61 bool SetLabel(
const std::string& label,
Range range)
override;
70 #endif // FLUTTER_IMPELLER_RENDERER_BACKEND_GLES_DEVICE_BUFFER_GLES_H_