skia2/experimental/canvaskit
Kevin Lubick 65846c04e0 [canvaskit] Add .ready() which is a real promise
Prior to this, CanvasKit was unintentionally a thenable, which means if
it was used to resolve a Promise, certain logic would be called which
would put it into an infinite loop. By adding a .ready() which returns
a proper Promise and removes the .then(), this should make the CanvasKit
libary safer.

For now, the .then() still exists unless .ready() is called. .then will
be removed unconditionally in 0.4.0 which will be out after all known
clients (e.g. jsfiddle.skia.org) are changed.

See: https://github.com/kripken/emscripten/issues/5820

Bug: skia:
Change-Id: Ie4093f6b0ce03070ef737941693b06dfff93f61c
Reviewed-on: https://skia-review.googlesource.com/c/181177
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
2019-01-04 19:48:19 +00:00
..
canvaskit [canvaskit] Add .ready() which is a real promise 2019-01-04 19:48:19 +00:00
fonts [canvaskit] Allow users to load their own fonts 2018-12-12 15:40:08 +00:00
htmlcanvas [canvaskit] Add .ready() which is a real promise 2019-01-04 19:48:19 +00:00
perf [canvaskit] Add .ready() which is a real promise 2019-01-04 19:48:19 +00:00
tests [canvaskit] Add .ready() which is a real promise 2019-01-04 19:48:19 +00:00
.gitignore [canvaskit] Allow users to load their own fonts 2018-12-12 15:40:08 +00:00
canvaskit_bindings.cpp [canvaskit] Allow providing webgl context and canvas element 2019-01-04 12:58:05 +00:00
CHANGELOG.md [canvaskit] Add .ready() which is a real promise 2019-01-04 19:48:19 +00:00
compile.sh [canvaskit] Add .ready() which is a real promise 2019-01-04 19:48:19 +00:00
cpu.js [canvaskit] Allow providing webgl context and canvas element 2019-01-04 12:58:05 +00:00
debug.js [canvaskit] Add debug-mode only logs 2018-11-20 22:22:04 +00:00
externs.js [canvaskit] Move to using SkFont instead of SkPaint.measure* 2019-01-02 20:52:35 +00:00
gpu.js [canvaskit] Allow providing webgl context and canvas element 2019-01-04 12:58:05 +00:00
helper.js [canvaskit] Add isPointInPath / isPointInStroke 2018-12-07 18:58:48 +00:00
interface.js [canvaskit] Canvas API for loading fonts 2018-12-14 21:32:21 +00:00
karma.bench.conf.js [canvaskit] Add perf jobs 2018-10-17 19:41:16 +00:00
karma.conf.js [canvaskit] Add drawImage support 2018-12-03 18:47:29 +00:00
Makefile [canvaskit] Performance tuning of GL calls 2018-12-17 16:28:30 +00:00
package.json [canvaskit] Get docs ready for npm release 2018-12-18 12:56:18 +00:00
ready.js [canvaskit] Add .ready() which is a real promise 2019-01-04 19:48:19 +00:00
release.js [canvaskit] Add debug-mode only logs 2018-11-20 22:22:04 +00:00
serve.py [CanvasKit] Implement some basic Canvas/Surface things. 2018-09-21 12:03:55 +00:00
skottie_bindings.cpp [canvaskit] Refactor skottie into own file 2019-01-03 21:10:05 +00:00
WasmAliases.h [canvaskit] Refactor skottie into own file 2019-01-03 21:10:05 +00:00