Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read remote images back into local images before sending them to othe…
…r threads. https://bugs.webkit.org/show_bug.cgi?id=248416 Reviewed by Kimmo Kinnunen. We currently can't use RemoteRenderingBackendProxy from other threads, so sending RemoteImageBufferProxys to other threads leaves us in an invalid state. This reads them back into local images before transferring so that we can access the contents. * Source/WebCore/html/ImageBitmap.cpp: (WebCore::ImageBitmap::detachBitmaps): (WebCore::ImageBitmap::~ImageBitmap): * Source/WebCore/html/ImageBitmapBacking.cpp: (WebCore::ImageBitmapBacking::takeImageBufferForDifferentThread): * Source/WebCore/html/ImageBitmapBacking.h: * Source/WebCore/html/OffscreenCanvas.cpp: (WebCore::OffscreenCanvas::detach): (WebCore::OffscreenCanvas::commitToPlaceholderCanvas): (WebCore::OffscreenCanvas::takeImageBufferForDifferentThread const): (WebCore::OffscreenCanvas::takeImageBuffer const): Deleted. * Source/WebCore/html/OffscreenCanvas.h: * Source/WebCore/platform/graphics/ImageBuffer.cpp: (WebCore::ImageBuffer::cloneForDifferentThread): (WebCore::ImageBuffer::sinkIntoBufferForDifferentThread): * Source/WebCore/platform/graphics/ImageBuffer.h: * Source/WebCore/platform/graphics/NativeImage.h: * Source/WebKit/WebProcess/GPU/graphics/RemoteImageBufferProxy.cpp: (WebKit::RemoteImageBufferProxy::drawConsuming): (WebKit::RemoteImageBufferProxy::sinkIntoNativeImage): (WebKit::RemoteImageBufferProxy::sinkIntoBufferForDifferentThread): (WebKit::RemoteImageBufferProxy::cloneForDifferentThread): * Source/WebKit/WebProcess/GPU/graphics/RemoteImageBufferProxy.h: Canonical link: https://commits.webkit.org/257103@main
- Loading branch information
1 parent
9b75120
commit ab926d6
Showing
10 changed files
with
63 additions
and
13 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
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
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
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