10 #include "flutter/fml/logging.h"
19 : scene_context_(
std::move(scene_context)) {
20 root_.is_root_ =
true;
24 for (
auto& child :
GetRoot().GetChildren()) {
25 child->parent_ =
nullptr;
34 const Matrix& camera_transform) {
38 *scene_context_->GetContext()->GetResourceAllocator(),
40 FML_LOG(ERROR) <<
"Failed to render frame.";
46 std::shared_ptr<CommandBuffer> command_buffer =
47 encoder.BuildSceneCommandBuffer(*scene_context_, camera_transform,
52 if (!command_buffer->SubmitCommands()) {
53 FML_LOG(ERROR) <<
"Failed to submit command buffer.";
61 return Render(render_target,