Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[skwasm] Reify the SkPicture pointer as the right type. #51991

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/web_ui/skwasm/surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,8 @@ SKWASM_EXPORT void surface_renderPicturesOnWorker(Surface* surface,
uint32_t callbackId,
double rasterStart) {
// This will release the pictures when they leave scope.
std::unique_ptr<sk_sp<SkPicture>> picturesPointer =
std::unique_ptr<sk_sp<SkPicture>>(pictures);
std::unique_ptr<sk_sp<SkPicture>[]> picturesPointer =
std::unique_ptr<sk_sp<SkPicture>[]>(pictures);
surface->renderPicturesOnWorker(pictures, pictureCount, callbackId,
rasterStart);
}
Expand Down