10 #include "flutter/fml/logging.h"
11 #include "fml/closure.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) {
36 fml::ScopedCleanupClosure reset_state(
37 [context = scene_context_]() { context->GetTransientsBuffer().Reset(); });
42 *scene_context_->GetContext()->GetResourceAllocator(),
44 FML_LOG(ERROR) <<
"Failed to render frame.";
50 std::shared_ptr<CommandBuffer> command_buffer =
51 encoder.BuildSceneCommandBuffer(*scene_context_, camera_transform,
56 if (!scene_context_->GetContext()
58 ->Submit({command_buffer})
60 FML_LOG(ERROR) <<
"Failed to submit command buffer.";
68 return Render(render_target,