forked from firka/flutter
Roll CanvasKit to 0.28.0 (flutter/engine#26944)
* Roll CanvasKit to 0.28.0 * Skip test on Safari
This commit is contained in:
@@ -84,7 +84,7 @@ const bool canvasKitForceCpuOnly = bool.fromEnvironment(
|
||||
/// NPM, update this URL to `https://unpkg.com/canvaskit-wasm@0.34.0/bin/`.
|
||||
const String canvasKitBaseUrl = String.fromEnvironment(
|
||||
'FLUTTER_WEB_CANVASKIT_URL',
|
||||
defaultValue: 'https://unpkg.com/canvaskit-wasm@0.27.0/bin/',
|
||||
defaultValue: 'https://unpkg.com/canvaskit-wasm@0.28.0/bin/',
|
||||
);
|
||||
final String canvasKitBuildUrl =
|
||||
canvasKitBaseUrl + (kProfileMode ? 'profiling/' : '');
|
||||
|
||||
@@ -836,12 +836,12 @@ void _pathTests() {
|
||||
const ui.Rect rect = ui.Rect.fromLTRB(0, 0, 10, 10);
|
||||
final SkPath path = SkPath();
|
||||
path.addRect(toSkRect(rect));
|
||||
expect(path.toCmds(), <List<num>>[
|
||||
<num>[0, 0, 0], // moveTo
|
||||
<num>[1, 10, 0], // lineTo
|
||||
<num>[1, 10, 10], // lineTo
|
||||
<num>[1, 0, 10], // lineTo
|
||||
<num>[5], // close
|
||||
expect(path.toCmds(), <num>[
|
||||
0, 0, 0, // moveTo
|
||||
1, 10, 0, // lineTo
|
||||
1, 10, 10, // lineTo
|
||||
1, 0, 10, // lineTo
|
||||
5, // close
|
||||
]);
|
||||
|
||||
final SkPath copy = canvasKit.Path.MakeFromCmds(path.toCmds());
|
||||
@@ -1335,7 +1335,8 @@ void _paragraphTests() {
|
||||
SkPaint());
|
||||
builder.addText('!');
|
||||
builder.pop();
|
||||
builder.pushStyle(canvasKit.TextStyle(SkTextStyleProperties()..halfLeading = true));
|
||||
builder.pushStyle(
|
||||
canvasKit.TextStyle(SkTextStyleProperties()..halfLeading = true));
|
||||
builder.pop();
|
||||
final SkParagraph paragraph = builder.build();
|
||||
paragraph.layout(55);
|
||||
|
||||
@@ -53,8 +53,6 @@ void testMain() {
|
||||
expect(paragraph, isNotNull);
|
||||
}
|
||||
});
|
||||
// This test fails with "memory access out of bounds"
|
||||
// See https://github.com/flutter/flutter/issues/80140
|
||||
// Unskip this once this fix lands: https://skia-review.googlesource.com/c/skia/+/416687
|
||||
}, skip: true);
|
||||
// TODO: https://github.com/flutter/flutter/issues/60040
|
||||
}, skip: isIosSafari);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user