153 {
154
155
156 SkwasmObject imagePromiseArray = __builtin_wasm_ref_null_extern();
157 for (int i = 0; i < pictureCount; i++) {
161 pictureRect.
roundOut(&roundedOutRect);
162 _resizeCanvasToFit(roundedOutRect.
width(), roundedOutRect.
height());
168 canvas->drawPicture(picture, &matrix, nullptr);
170 imagePromiseArray =
172 roundedOutRect.
height(), imagePromiseArray);
173 }
175}
constexpr SkColor SK_ColorTRANSPARENT
GrSemaphoresSubmitted flush(const GrFlushInfo &info)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
static SkMatrix Translate(SkScalar dx, SkScalar dy)
virtual SkRect cullRect() const =0
unsigned useCenter Optional< SkMatrix > matrix
sk_sp< const SkPicture > picture
void makeCurrent(EMSCRIPTEN_WEBGL_CONTEXT_HANDLE handle)
SkwasmObject skwasm_captureImageBitmap(uint32_t contextHandle, int width, int height, SkwasmObject imagePromises)
void skwasm_resolveAndPostImages(Skwasm::Surface *surface, SkwasmObject imagePromises, double rasterStart, uint32_t callbackId)
__externref_t SkwasmObject
constexpr int32_t height() const
int32_t fTop
smaller y-axis bounds
constexpr int32_t width() const
int32_t fLeft
smaller x-axis bounds
void roundOut(SkIRect *dst) const