5#ifndef FLUTTER_LIB_WEB_UI_SKWASM_WRAPPERS_H_
6#define FLUTTER_LIB_WEB_UI_SKWASM_WRAPPERS_H_
8#include <emscripten/html5_webgl.h>
9#include "third_party/skia/include/core/SkCanvas.h"
10#include "third_party/skia/include/core/SkSurface.h"
11#include "third_party/skia/modules/skparagraph/include/FontCollection.h"
12#include "third_party/skia/modules/skparagraph/include/TypefaceFontProvider.h"
24inline void makeCurrent(EMSCRIPTEN_WEBGL_CONTEXT_HANDLE handle) {
28 int result = emscripten_webgl_make_context_current(handle);
29 if (result != EMSCRIPTEN_RESULT_SUCCESS) {
30 printf(
"make_context failed: %d", result);
36 sk_sp<skia::textlayout::TypefaceFontProvider>
provider;
__externref_t SkwasmObject
void makeCurrent(EMSCRIPTEN_WEBGL_CONTEXT_HANDLE handle)
sk_sp< skia::textlayout::TypefaceFontProvider > provider
sk_sp< skia::textlayout::FontCollection > collection
sk_sp< GrDirectContext > grContext
sk_sp< SkSurface > surface
EMSCRIPTEN_WEBGL_CONTEXT_HANDLE context