-
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.
OffscreenCanvas.transferToImageBuffer() does not clear WebGL drawing …
…buffer correctly https://bugs.webkit.org/show_bug.cgi?id=272960 rdar://126738038 Reviewed by Matt Woodrow. OffscreenCanvas.transferToImageBuffer() should cause compositing steps similar to the case of preserveDrawingBuffer=false drawing buffer is displayed: - color buffer, depth, stencil is cleared Previous clear implementation would use WebGL context state, which would not necceassarily clear the correct framebuffer in a correct way. * Source/WebCore/html/OffscreenCanvas.cpp: (WebCore::OffscreenCanvas::transferToImageBitmap): * Source/WebCore/html/canvas/WebGLDefaultFramebuffer.cpp: (WebCore::WebGLDefaultFramebuffer::markAllBuffersDirty): * Source/WebCore/html/canvas/WebGLDefaultFramebuffer.h: * Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::markBuffersDirtyForTransfer): * Source/WebCore/html/canvas/WebGLRenderingContextBase.h: Canonical link: https://commits.webkit.org/279434@main
- Loading branch information
1 parent
14d2ee9
commit c3988b9
Showing
6 changed files
with
27 additions
and
16 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