3f67f411d8
Bug: skia: Change-Id: I2ffd54cf81c974f3a80103e1726a06067cc90d82 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/200044 Reviewed-by: Mike Reed <reed@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Kevin Lubick <kjlubick@google.com>
18 lines
596 B
JavaScript
18 lines
596 B
JavaScript
// The increased timeout is especially needed with larger binaries
|
|
// like in the debug/gpu build
|
|
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000;
|
|
|
|
let CanvasKit = null;
|
|
const LoadCanvasKit = new Promise(function(resolve, reject) {
|
|
console.log('canvaskit loading', new Date());
|
|
CanvasKitInit({
|
|
locateFile: (file) => '/canvaskit/'+file,
|
|
}).ready().then((loaded) => {
|
|
console.log('canvaskit loaded', new Date());
|
|
CanvasKit = loaded;
|
|
resolve();
|
|
}).catch((e) => {
|
|
console.error('canvaskit failed to load', new Date(), e);
|
|
reject();
|
|
});
|
|
}); |