5#ifndef FLUTTER_LIB_UI_PAINTING_IMAGE_ENCODING_IMPELLER_H_
6#define FLUTTER_LIB_UI_PAINTING_IMAGE_ENCODING_IMPELLER_H_
8#include "flutter/common/task_runners.h"
9#include "flutter/display_list/image/dl_image.h"
10#include "flutter/fml/status_or.h"
11#include "flutter/fml/synchronization/sync_switch.h"
31 const std::shared_ptr<impeller::Context>& impeller_context);
40 const std::shared_ptr<const fml::SyncSwitch>& is_gpu_disabled_sync_switch,
41 const std::shared_ptr<impeller::Context>& impeller_context);
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)
Dart_NativeFunction function