Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
host_buffer.h File Reference
#include "flutter/lib/gpu/export.h"
#include "flutter/lib/ui/dart_wrapper.h"
#include "impeller/core/buffer_view.h"
#include "impeller/core/host_buffer.h"
#include "lib/gpu/context.h"
#include "third_party/tonic/typed_data/dart_byte_data.h"

Go to the source code of this file.

Classes

class  flutter::gpu::HostBuffer
 

Namespaces

namespace  flutter
 
namespace  flutter::gpu
 

Functions

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)
 

Function Documentation

◆ InternalFlutterGpu_HostBuffer_EmplaceBytes()

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

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)

◆ InternalFlutterGpu_HostBuffer_Initialize()

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

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}