#include <picture.h>
Public Member Functions | |
| ~Picture () override | |
| sk_sp< DisplayList > | display_list () const |
| Dart_Handle | toImage (uint32_t width, uint32_t height, Dart_Handle raw_image_callback) |
| void | toImageSync (uint32_t width, uint32_t height, Dart_Handle raw_image_handle) |
| void | dispose () |
| size_t | GetAllocationSize () const |
Public Member Functions inherited from flutter::RefCountedDartWrappable< Picture > | |
| virtual void | RetainDartWrappableReference () const override |
| virtual void | ReleaseDartWrappableReference () const override |
Public Member Functions inherited from fml::RefCountedThreadSafe< T > | |
| void | Release () const |
Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
| void | AddRef () const |
| bool | HasOneRef () const |
| void | AssertHasOneRef () const |
Public Member Functions inherited from tonic::DartWrappable | |
| DartWrappable () | |
| virtual const DartWrapperInfo & | GetDartWrapperInfo () const =0 |
| Dart_Handle | CreateDartWrapper (DartState *dart_state) |
| void | AssociateWithDartWrapper (Dart_Handle wrappable) |
| void | ClearDartWrapper () |
| Dart_WeakPersistentHandle | dart_wrapper () const |
Static Public Member Functions | |
| static void | CreateAndAssociateWithDartWrapper (Dart_Handle dart_handle, sk_sp< DisplayList > display_list) |
| static void | RasterizeToImageSync (sk_sp< DisplayList > display_list, uint32_t width, uint32_t height, Dart_Handle raw_image_handle) |
| static Dart_Handle | RasterizeToImage (const sk_sp< DisplayList > &display_list, 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) |
| 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) |
Additional Inherited Members | |
Public Types inherited from tonic::DartWrappable | |
| enum | DartNativeFields { kPeerIndex , kNumberOfNativeFields } |
Protected Member Functions inherited from fml::RefCountedThreadSafe< T > | |
| RefCountedThreadSafe () | |
| ~RefCountedThreadSafe () | |
Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
| RefCountedThreadSafeBase () | |
| ~RefCountedThreadSafeBase () | |
| bool | Release () const |
| void | Adopt () |
Protected Member Functions inherited from tonic::DartWrappable | |
| virtual | ~DartWrappable () |
Static Protected Member Functions inherited from tonic::DartWrappable | |
| static Dart_PersistentHandle | GetTypeForWrapper (tonic::DartState *dart_state, const tonic::DartWrapperInfo &wrapper_info) |
|
overridedefault |
|
static |
Definition at line 29 of file picture.cc.
References display_list(), and FML_DCHECK.
Referenced by flutter::PictureRecorder::endRecording().
|
inline |
Definition at line 27 of file picture.h.
Referenced by flutter::SceneBuilder::addPicture(), CreateAndAssociateWithDartWrapper(), DoRasterizeToImage(), flutter::Canvas::drawPicture(), RasterizeToImage(), RasterizeToImageSync(), and flutter::testing::TEST_F().
| void flutter::Picture::dispose | ( | ) |
Definition at line 107 of file picture.cc.
References tonic::DartWrappable::ClearDartWrapper().
|
static |
Definition at line 137 of file picture.cc.
References flutter::CanvasImage::Create(), flutter::UIDartState::Current(), tonic::DartInvoke(), display_list(), FML_DCHECK, height, image, flutter::DlImageGPU::Make(), fml::MakeCopyable(), impeller::TRect< Scalar >::MakeWH(), fml::TaskRunner::RunNowOrPostTask(), tonic::ToDart(), and width.
Referenced by RasterizeLayerTreeToImage(), and RasterizeToImage().
| size_t flutter::Picture::GetAllocationSize | ( | ) | const |
Definition at line 112 of file picture.cc.
|
static |
Definition at line 128 of file picture.cc.
References DoRasterizeToImage(), and FML_DCHECK.
Referenced by flutter::Scene::toImage().
|
static |
Definition at line 120 of file picture.cc.
References display_list(), DoRasterizeToImage(), height, and width.
Referenced by toImage().
|
static |
Definition at line 87 of file picture.cc.
References flutter::CanvasImage::Create(), flutter::CreateDeferredImage(), flutter::UIDartState::Current(), display_list(), height, image, and width.
Referenced by toImageSync().
| Dart_Handle flutter::Picture::toImage | ( | uint32_t | width, |
| uint32_t | height, | ||
| Dart_Handle | raw_image_callback | ||
| ) |
Definition at line 42 of file picture.cc.
References height, RasterizeToImage(), tonic::ToDart(), and width.
| void flutter::Picture::toImageSync | ( | uint32_t | width, |
| uint32_t | height, | ||
| Dart_Handle | raw_image_handle | ||
| ) |
Definition at line 51 of file picture.cc.
References FML_DCHECK, height, RasterizeToImageSync(), and width.