#include <surface.h>
Public Types | |
| using | CallbackHandler = void(uint32_t, void *, SkwasmObject) |
Public Member Functions | |
| Surface () | |
| unsigned long | GetThreadId () |
| void | Dispose () |
| void | SetResourceCacheLimit (int bytes) |
| uint32_t | RenderPictures (flutter::DisplayList **pictures, int width, int height, int count) |
| uint32_t | RasterizeImage (flutter::DlImage *image, ImageByteFormat format) |
| void | SetCallbackHandler (CallbackHandler *callback_handler) |
| void | OnRenderComplete (uint32_t callback_id, SkwasmObject image_bitmap) |
| void | OnRasterizeComplete (uint32_t callback_id, SkData *data) |
| std::unique_ptr< TextureSourceWrapper > | CreateTextureSourceWrapper (SkwasmObject texture_source) |
| void | RenderPicturesOnWorker (sk_sp< flutter::DisplayList > *pictures, int width, int height, int picture_count, uint32_t callback_id, double raster_start) |
| void | RasterizeImageOnWorker (flutter::DlImage *image, ImageByteFormat format, uint32_t callback_id) |
| using Skwasm::Surface::CallbackHandler = void(uint32_t, void*, SkwasmObject) |
| Skwasm::Surface::Surface | ( | ) |
Definition at line 17 of file surface.cc.
References skwasm_connectThread(), and skwasm_isSingleThreaded().
| std::unique_ptr< Skwasm::TextureSourceWrapper > Skwasm::Surface::CreateTextureSourceWrapper | ( | Skwasm::SkwasmObject | texture_source | ) |
Definition at line 76 of file surface.cc.
| void Skwasm::Surface::Dispose | ( | ) |
Definition at line 35 of file surface.cc.
|
inline |
| void Skwasm::Surface::OnRasterizeComplete | ( | uint32_t | callback_id, |
| SkData * | data | ||
| ) |
Definition at line 206 of file surface.cc.
References data.
| void Skwasm::Surface::OnRenderComplete | ( | uint32_t | callback_id, |
| Skwasm::SkwasmObject | image_bitmap | ||
| ) |
Definition at line 211 of file surface.cc.
| uint32_t Skwasm::Surface::RasterizeImage | ( | flutter::DlImage * | image, |
| Skwasm::ImageByteFormat | format | ||
| ) |
Definition at line 65 of file surface.cc.
References format, image, and skwasm_dispatchRasterizeImage().
| void Skwasm::Surface::RasterizeImageOnWorker | ( | flutter::DlImage * | image, |
| Skwasm::ImageByteFormat | format, | ||
| uint32_t | callback_id | ||
| ) |
Definition at line 166 of file surface.cc.
References alpha_type, data, format, image, Skwasm::png, Skwasm::rawStraightRgba, and skwasm_postRasterizeResult().
| uint32_t Skwasm::Surface::RenderPictures | ( | flutter::DisplayList ** | pictures, |
| int | width, | ||
| int | height, | ||
| int | count | ||
| ) |
Definition at line 45 of file surface.cc.
References height, i, skwasm_dispatchRenderPictures(), and width.
| void Skwasm::Surface::RenderPicturesOnWorker | ( | sk_sp< flutter::DisplayList > * | pictures, |
| int | width, | ||
| int | height, | ||
| int | picture_count, | ||
| uint32_t | callback_id, | ||
| double | raster_start | ||
| ) |
Definition at line 137 of file surface.cc.
References height, i, Skwasm::makeCurrent(), skwasm_captureImageBitmap(), skwasm_resolveAndPostImages(), and width.
| void Skwasm::Surface::SetCallbackHandler | ( | CallbackHandler * | callback_handler | ) |
Definition at line 83 of file surface.cc.
References callback_handler.
| void Skwasm::Surface::SetResourceCacheLimit | ( | int | bytes | ) |
Definition at line 40 of file surface.cc.