5#ifndef FLUTTER_LIB_GPU_DEVICE_BUFFER_H_
6#define FLUTTER_LIB_GPU_DEVICE_BUFFER_H_
18 DEFINE_WRAPPERTYPEINFO();
22 explicit DeviceBuffer(std::shared_ptr<impeller::DeviceBuffer> device_buffer);
26 std::shared_ptr<impeller::DeviceBuffer>
GetBuffer();
29 size_t destination_offset_in_bytes);
32 std::shared_ptr<impeller::DeviceBuffer> device_buffer_;
57 Dart_Handle byte_data);
62 Dart_Handle source_byte_data,
63 int destination_offset_in_bytes);
bool Overwrite(const tonic::DartByteData &source_bytes, size_t destination_offset_in_bytes)
std::shared_ptr< impeller::DeviceBuffer > GetBuffer()
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
#define FLUTTER_GPU_EXPORT
FLUTTER_GPU_EXPORT bool InternalFlutterGpu_DeviceBuffer_InitializeWithHostData(Dart_Handle wrapper, flutter::gpu::Context *gpu_context, Dart_Handle byte_data)
FLUTTER_GPU_EXPORT bool InternalFlutterGpu_DeviceBuffer_Flush(flutter::gpu::DeviceBuffer *wrapper, int offset_in_bytes, int size_in_bytes)
FLUTTER_GPU_EXPORT bool InternalFlutterGpu_DeviceBuffer_Initialize(Dart_Handle wrapper, flutter::gpu::Context *gpu_context, int storage_mode, int size_in_bytes)
FLUTTER_GPU_EXPORT bool InternalFlutterGpu_DeviceBuffer_Overwrite(flutter::gpu::DeviceBuffer *wrapper, Dart_Handle source_byte_data, int destination_offset_in_bytes)
#define FML_FRIEND_MAKE_REF_COUNTED(T)