-
Notifications
You must be signed in to change notification settings - Fork 6k
Roll CanvasKit to 0.22 #23348
Roll CanvasKit to 0.22 #23348
Conversation
@@ -1269,6 +1292,27 @@ SkFloat32List toMallocedSkPoints(List<ui.Offset> points) { | |||
return skPoints; | |||
} | |||
|
|||
/// Converts a list of [ui.Offset] into a flat list of points. | |||
Float32List toFlatSkPoints(List<ui.Offset> points) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still need toSkPoints2d
and rawPointsToSkPoints2d
after this PR? Also, can we use toMallocedSkPoints
instead to avoid double-copying the data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was unsure if that would mean we would have to free
and re-malloc
the positions whenever we delete the SkVertices
. Since we only use it at once, at construction, I figured it wouldn't hurt performance to let CanvasKit do the Malloc
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e9ee8e4
to
4e78dc4
Compare
Description
Rolls CanvasKit to 0.22, bringing in various fixes.
Related Issues
Fixes flutter/flutter#70620
Tests
Updates
canvaskit_api_test.dart
for APIs that changed.Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes (
[x]
). This will ensure a smooth and quick review process.Reviewer Checklist
Breaking Change
Did any tests fail when you ran them? Please read handling breaking changes.