5#ifndef FLUTTER_LIB_GPU_HOST_BUFFER_H_
6#define FLUTTER_LIB_GPU_HOST_BUFFER_H_
8#include "flutter/lib/gpu/export.h"
9#include "flutter/lib/ui/dart_wrapper.h"
19 DEFINE_WRAPPERTYPEINFO();
27 std::shared_ptr<impeller::HostBuffer>
GetBuffer();
34 size_t current_offset_ = 0;
35 std::shared_ptr<impeller::HostBuffer> host_buffer_;
36 std::unordered_map<size_t, impeller::BufferView> emplacements_;
std::shared_ptr< impeller::HostBuffer > GetBuffer()
size_t EmplaceBytes(const tonic::DartByteData &byte_data)
std::optional< impeller::BufferView > GetBufferViewForOffset(size_t offset)
HostBuffer(Context *context)
struct _Dart_Handle * Dart_Handle
#define FLUTTER_GPU_EXPORT
FLUTTER_GPU_EXPORT void InternalFlutterGpu_HostBuffer_Initialize(Dart_Handle wrapper, flutter::gpu::Context *context)
FLUTTER_GPU_EXPORT size_t InternalFlutterGpu_HostBuffer_EmplaceBytes(flutter::gpu::HostBuffer *wrapper, Dart_Handle byte_data)