5#ifndef FLUTTER_LIB_GPU_COMMAND_BUFFER_H_
6#define FLUTTER_LIB_GPU_COMMAND_BUFFER_H_
8#include "flutter/lib/gpu/context.h"
9#include "flutter/lib/gpu/export.h"
10#include "flutter/lib/ui/dart_wrapper.h"
17 DEFINE_WRAPPERTYPEINFO();
22 std::shared_ptr<impeller::CommandBuffer> command_buffer);
26 void AddRenderPass(std::shared_ptr<impeller::RenderPass> render_pass);
35 std::shared_ptr<impeller::Context> context_;
36 std::shared_ptr<impeller::CommandBuffer> command_buffer_;
37 std::vector<std::shared_ptr<impeller::RenderPass>> encodables_;
CommandBuffer(std::shared_ptr< impeller::Context > context, std::shared_ptr< impeller::CommandBuffer > command_buffer)
~CommandBuffer() override
std::shared_ptr< impeller::CommandBuffer > GetCommandBuffer()
void AddRenderPass(std::shared_ptr< impeller::RenderPass > render_pass)
std::function< void(Status)> CompletionCallback
struct _Dart_Handle * Dart_Handle
#define FLUTTER_GPU_EXPORT
FLUTTER_GPU_EXPORT bool InternalFlutterGpu_CommandBuffer_Initialize(Dart_Handle wrapper, flutter::gpu::Context *contextWrapper)
FLUTTER_GPU_EXPORT Dart_Handle InternalFlutterGpu_CommandBuffer_Submit(flutter::gpu::CommandBuffer *wrapper, Dart_Handle completion_callback)