5#ifndef FLUTTER_LIB_UI_PAINTING_PICTURE_H_
6#define FLUTTER_LIB_UI_PAINTING_PICTURE_H_
8#include "flutter/display_list/display_list.h"
9#include "flutter/flow/layers/layer_tree.h"
10#include "flutter/lib/ui/dart_wrapper.h"
11#include "flutter/lib/ui/painting/image.h"
12#include "flutter/lib/ui/ui_dart_state.h"
18 DEFINE_WRAPPERTYPEINFO();
19 FML_FRIEND_MAKE_REF_COUNTED(
Picture);
52 std::unique_ptr<LayerTree> layer_tree,
60 std::unique_ptr<LayerTree> layer_tree,
sk_sp< DisplayList > display_list() const
static void CreateAndAssociateWithDartWrapper(Dart_Handle dart_handle, sk_sp< DisplayList > display_list)
Dart_Handle toImage(uint32_t width, uint32_t height, Dart_Handle raw_image_callback)
static Dart_Handle RasterizeLayerTreeToImage(std::unique_ptr< LayerTree > layer_tree, Dart_Handle raw_image_callback)
size_t GetAllocationSize() const
void toImageSync(uint32_t width, uint32_t height, Dart_Handle raw_image_handle)
static Dart_Handle DoRasterizeToImage(const sk_sp< DisplayList > &display_list, std::unique_ptr< LayerTree > layer_tree, uint32_t width, uint32_t height, Dart_Handle raw_image_callback)
static Dart_Handle RasterizeToImage(const sk_sp< DisplayList > &display_list, uint32_t width, uint32_t height, Dart_Handle raw_image_callback)
static void RasterizeToImageSync(sk_sp< DisplayList > display_list, uint32_t width, uint32_t height, Dart_Handle raw_image_handle)
struct _Dart_Handle * Dart_Handle