Flutter Engine
The Flutter Engine
|
#include <image_encoding_impeller.h>
Static Public Member Functions | |
static int | GetColorSpace (const std::shared_ptr< impeller::Texture > &texture) |
static void | ConvertDlImageToSkImage (const sk_sp< DlImage > &dl_image, std::function< void(fml::StatusOr< sk_sp< SkImage > >)> encode_task, const std::shared_ptr< impeller::Context > &impeller_context) |
static void | ConvertImageToRaster (const sk_sp< DlImage > &dl_image, std::function< void(fml::StatusOr< sk_sp< SkImage > >)> encode_task, const fml::RefPtr< fml::TaskRunner > &raster_task_runner, const fml::RefPtr< fml::TaskRunner > &io_task_runner, const std::shared_ptr< const fml::SyncSwitch > &is_gpu_disabled_sync_switch, const std::shared_ptr< impeller::Context > &impeller_context) |
Definition at line 19 of file image_encoding_impeller.h.
|
static |
Converts a DlImage to a SkImage. This should be called from the thread that corresponds to dl_image->owning_context()
when gpu access is guaranteed. See also: ConvertImageToRaster
. Visible for testing.
Definition at line 124 of file image_encoding_impeller.cc.
|
static |
Converts a DlImage to a SkImage. encode_task
is executed with the resulting SkImage
.
Definition at line 189 of file image_encoding_impeller.cc.
|
static |
Definition at line 223 of file image_encoding_impeller.cc.