10#include "flutter/fml/logging.h"
20 : scene_context_(
std::move(scene_context)) {
21 root_.is_root_ =
true;
25 for (
auto& child :
GetRoot().GetChildren()) {
26 child->parent_ =
nullptr;
35 const Matrix& camera_transform) {
37 [context = scene_context_]() { context->GetTransientsBuffer().
Reset(); });
42 *scene_context_->GetContext()->GetResourceAllocator(),
50 std::shared_ptr<CommandBuffer> command_buffer =
51 encoder.BuildSceneCommandBuffer(*scene_context_, camera_transform,
56 if (!scene_context_->GetContext()
58 ->Submit({command_buffer})
68 return Render(render_target,
Wraps a closure that is invoked in the destructor unless released by the caller.
ISize GetRenderTargetSize() const
Matrix GetTransform(ISize target_size) const
bool Render(SceneEncoder &encoder, Allocator &allocator, const Matrix &parent_transform)
bool Render(const RenderTarget &render_target, const Matrix &camera_transform)
#define FML_LOG(severity)
A 4x4 matrix using column-major storage.