5#ifndef FLUTTER_LIB_GPU_DEVICE_BUFFER_H_
6#define FLUTTER_LIB_GPU_DEVICE_BUFFER_H_
8#include "flutter/lib/gpu/context.h"
9#include "flutter/lib/gpu/export.h"
10#include "flutter/lib/ui/dart_wrapper.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_;
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()
DeviceBuffer(std::shared_ptr< impeller::DeviceBuffer > device_buffer)
struct _Dart_Handle * Dart_Handle
#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_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)