[webkit-changes] [WebKit/WebKit] 351014: [Skia][Nicosia] Use a content layer for the canvas...
Carlos Garcia Campos
noreply at github.com
Thu May 23 20:49:03 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 351014754186c3c53d6374f48b24bf07cb007168
https://github.com/WebKit/WebKit/commit/351014754186c3c53d6374f48b24bf07cb007168
Author: Carlos Garcia Campos <cgarcia at igalia.com>
Date: 2024-05-23 (Thu, 23 May 2024)
Changed paths:
M LayoutTests/platform/glib/TestExpectations
M LayoutTests/platform/glib/compositing/canvas/accelerated-canvas-compositing-expected.txt
M LayoutTests/platform/glib/compositing/canvas/accelerated-canvas-compositing-size-limit-expected.txt
A LayoutTests/platform/glib/compositing/layer-creation/compositing-policy-expected.txt
M Source/WebCore/html/HTMLCanvasElement.cpp
M Source/WebCore/html/HTMLCanvasElement.h
M Source/WebCore/html/canvas/CanvasRenderingContext.h
M Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp
M Source/WebCore/html/canvas/CanvasRenderingContext2DBase.h
M Source/WebCore/platform/graphics/GraphicsLayerContentsDisplayDelegate.h
M Source/WebCore/platform/graphics/ImageBuffer.cpp
M Source/WebCore/platform/graphics/ImageBuffer.h
M Source/WebCore/platform/graphics/ImageBufferBackend.h
M Source/WebCore/platform/graphics/nicosia/NicosiaImageBufferPipe.h
M Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.cpp
M Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.h
M Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.h
M Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyGL.cpp
M Source/WebCore/rendering/RenderLayerBacking.cpp
Log Message:
-----------
[Skia][Nicosia] Use a content layer for the canvas when accelerated
https://bugs.webkit.org/show_bug.cgi?id=273873
Reviewed by Miguel Gomez.
When canvas is accelerated we can pass the canvas texture to the
compositor without having to render it into the layer.
* Source/WebCore/html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::shouldNotifyRendererOnDidDraw const):
(WebCore::HTMLCanvasElement::didDraw):
(WebCore::HTMLCanvasElement::paintsIntoCanvasBuffer const):
* Source/WebCore/html/HTMLCanvasElement.h:
* Source/WebCore/html/canvas/CanvasRenderingContext.h:
* Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp:
(WebCore::CanvasRenderingContext2DBase::layerContentsDisplayDelegate):
* Source/WebCore/html/canvas/CanvasRenderingContext2DBase.h:
* Source/WebCore/platform/graphics/GraphicsLayerContentsDisplayDelegate.h:
* Source/WebCore/platform/graphics/ImageBuffer.cpp:
(WebCore::ImageBuffer::layerContentsDisplayDelegate):
* Source/WebCore/platform/graphics/ImageBuffer.h:
* Source/WebCore/platform/graphics/ImageBufferBackend.h:
(WebCore::ImageBufferBackend::layerContentsDisplayDelegate const):
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.cpp:
(WebCore::ImageBufferSkiaAcceleratedBackend::ImageBufferSkiaAcceleratedBackend):
(WebCore::ImageBufferSkiaAcceleratedBackend::~ImageBufferSkiaAcceleratedBackend):
(WebCore::ImageBufferSkiaAcceleratedBackend::layerContentsDisplayDelegate const):
(WebCore::ImageBufferSkiaAcceleratedBackend::swapBuffersIfNeeded):
* Source/WebCore/platform/graphics/skia/ImageBufferSkiaAcceleratedBackend.h:
* Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.h:
* Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyGL.cpp:
(WebCore::TextureMapperPlatformLayerProxyGL::pushNextBuffer):
* Source/WebCore/rendering/RenderLayerBacking.cpp:
(WebCore::canvasCompositingStrategy):
Canonical link: https://commits.webkit.org/279254@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list