5#ifndef FLUTTER_LIB_UI_COMPOSITING_SCENE_H_
6#define FLUTTER_LIB_UI_COMPOSITING_SCENE_H_
11#include "flutter/flow/layers/layer_tree.h"
12#include "flutter/lib/ui/dart_wrapper.h"
17 DEFINE_WRAPPERTYPEINFO();
18 FML_FRIEND_MAKE_REF_COUNTED(
Scene);
23 std::shared_ptr<flutter::Layer> rootLayer);
39 explicit Scene(std::shared_ptr<flutter::Layer> rootLayer);
44 void RasterizeToImage(uint32_t
width,
48 std::unique_ptr<LayerTree> BuildLayerTree(uint32_t
width, uint32_t
height);
50 std::shared_ptr<Layer> layer_tree_root_layer_;
std::unique_ptr< flutter::LayerTree > takeLayerTree(uint64_t width, uint64_t height)
Dart_Handle toImage(uint32_t width, uint32_t height, Dart_Handle raw_image_handle)
static void create(Dart_Handle scene_handle, std::shared_ptr< flutter::Layer > rootLayer)
Dart_Handle toImageSync(uint32_t width, uint32_t height, Dart_Handle raw_image_handle)
struct _Dart_Handle * Dart_Handle