forked from firka/flutter
Roll CanvasKit to 0.14.0, fix Canvas.saveLayer(null, paint) (flutter/engine#17849)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user