Flutter Engine
The Flutter Engine
Namespaces | Functions
host_buffer.cc File Reference
#include "flutter/lib/gpu/host_buffer.h"
#include <optional>
#include "dart_api.h"
#include "impeller/core/host_buffer.h"
#include "impeller/core/platform.h"
#include "third_party/tonic/typed_data/dart_byte_data.h"

Go to the source code of this file.

Namespaces

namespace  flutter
 
namespace  flutter::gpu
 

Functions

 flutter::gpu::IMPLEMENT_WRAPPERTYPEINFO (flutter_gpu, HostBuffer)
 
void InternalFlutterGpu_HostBuffer_Initialize (Dart_Handle wrapper, flutter::gpu::Context *context)
 
size_t InternalFlutterGpu_HostBuffer_EmplaceBytes (flutter::gpu::HostBuffer *wrapper, Dart_Handle byte_data)
 

Function Documentation

◆ InternalFlutterGpu_HostBuffer_EmplaceBytes()

size_t InternalFlutterGpu_HostBuffer_EmplaceBytes ( flutter::gpu::HostBuffer wrapper,
Dart_Handle  byte_data 
)

Definition at line 57 of file host_buffer.cc.

59 {
60 return wrapper->EmplaceBytes(tonic::DartByteData(byte_data));
61}
size_t EmplaceBytes(const tonic::DartByteData &byte_data)
Definition: host_buffer.cc:29

◆ InternalFlutterGpu_HostBuffer_Initialize()

void InternalFlutterGpu_HostBuffer_Initialize ( Dart_Handle  wrapper,
flutter::gpu::Context context 
)

Exports

Definition at line 51 of file host_buffer.cc.

52 {
53 auto res = fml::MakeRefCounted<flutter::gpu::HostBuffer>(context);
54 res->AssociateWithDartWrapper(wrapper);
55}