Give attribution
Bug: skia:8488 Change-Id: If96c6bb500ceb0bf4b41c9b3aaf10aa9ad301c70 Reviewed-on: https://skia-review.googlesource.com/c/164260 Reviewed-by: Heather Miller <hcm@google.com>
This commit is contained in:
parent
bf612c6132
commit
9e40e6fa79
@ -50,6 +50,8 @@ void EMSCRIPTEN_KEEPALIVE initFonts() {
|
|||||||
|
|
||||||
#if SK_SUPPORT_GPU
|
#if SK_SUPPORT_GPU
|
||||||
// Wraps the WebGL context in an SkSurface and returns it.
|
// Wraps the WebGL context in an SkSurface and returns it.
|
||||||
|
// This function based on the work of
|
||||||
|
// https://github.com/Zubnix/skia-wasm-port/, used under the terms of the MIT license.
|
||||||
sk_sp<SkSurface> getWebGLSurface(std::string id, int width, int height) {
|
sk_sp<SkSurface> getWebGLSurface(std::string id, int width, int height) {
|
||||||
// Context configurations
|
// Context configurations
|
||||||
EmscriptenWebGLContextAttributes attrs;
|
EmscriptenWebGLContextAttributes attrs;
|
||||||
|
Loading…
Reference in New Issue
Block a user