-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detached OffscreenCanvas should not transfer ImageBuffer
https://bugs.webkit.org/show_bug.cgi?id=275144 rdar://129270155 Reviewed by Simon Fraser. The buffer cannot contain anything, as only the context-less OffscreenCanvases can be detached. * Source/WebCore/bindings/js/SerializedScriptValue.cpp: (WebCore::SerializedScriptValue::computeMemoryCost const): * Source/WebCore/html/OffscreenCanvas.cpp: (WebCore::DetachedOffscreenCanvas::DetachedOffscreenCanvas): (WebCore::OffscreenCanvas::create): (WebCore::OffscreenCanvas::detach): (WebCore::DetachedOffscreenCanvas::takeImageBuffer): Deleted. (WebCore::OffscreenCanvas::takeImageBuffer const): Deleted. * Source/WebCore/html/OffscreenCanvas.h: (WebCore::DetachedOffscreenCanvas::originClean const): (WebCore::DetachedOffscreenCanvas::memoryCost const): Deleted. Canonical link: https://commits.webkit.org/279775@main
- Loading branch information
1 parent
d637301
commit fa20ed6
Showing
3 changed files
with
4 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters