5#include "flutter/lib/gpu/host_buffer.h"
21 context->
GetContext()->GetResourceAllocator())) {}
33 emplacements_[current_offset_] = view;
35 current_offset_ += view.range.length;
41 return emplacements_[
offset];
53 auto res = fml::MakeRefCounted<flutter::gpu::HostBuffer>(context);
54 res->AssociateWithDartWrapper(wrapper);
static sk_sp< Effect > Create()
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)
const void * data() const
size_t length_in_bytes() const
struct _Dart_Handle * Dart_Handle
size_t InternalFlutterGpu_HostBuffer_EmplaceBytes(flutter::gpu::HostBuffer *wrapper, Dart_Handle byte_data)
void InternalFlutterGpu_HostBuffer_Initialize(Dart_Handle wrapper, flutter::gpu::Context *context)
SK_API GrDirectContext * GetContext(const SkImage *src)
IMPLEMENT_WRAPPERTYPEINFO(flutter_gpu, CommandBuffer)
constexpr size_t DefaultUniformAlignment()
SeparatedVector2 previous_offset