Roll CanvasKit to 0.14.0, fix Canvas.saveLayer(null, paint) (flutter/engine#17849)

This commit is contained in:
Dan Field
2020-04-21 19:22:21 -07:00
committed by GitHub
parent c6f023fe75
commit 95b6f94f2a
2 changed files with 3 additions and 2 deletions

View File

@@ -240,6 +240,7 @@ class SkCanvas {
}
void saveLayer(ui.Rect bounds, SkPaint paint) {
assert(bounds != null, 'Use saveLayerWithoutBounds');
skCanvas.callMethod('saveLayer', <js.JsObject>[
makeSkRect(bounds),
paint.skiaObject,
@@ -247,7 +248,7 @@ class SkCanvas {
}
void saveLayerWithoutBounds(SkPaint paint) {
skCanvas.callMethod('saveLayer', <js.JsObject>[null, paint.skiaObject]);
skCanvas.callMethod('saveLayer', <js.JsObject>[paint.skiaObject]);
}
void saveLayerWithFilter(ui.Rect bounds, ui.ImageFilter filter) {

View File

@@ -14,7 +14,7 @@ const bool experimentalUseSkia =
/// When CanvasKit pushes a new release to NPM, update this URL to reflect the
/// most recent version. For example, if CanvasKit releases version 0.34.0 to
/// NPM, update this URL to `https://unpkg.com/canvaskit-wasm@0.34.0/bin/`.
const String canvasKitBaseUrl = 'https://unpkg.com/canvaskit-wasm@0.12.0/bin/';
const String canvasKitBaseUrl = 'https://unpkg.com/canvaskit-wasm@0.14.0/bin/';
/// Initialize the Skia backend.
///