Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ba0578f34b1d565deb05a1db81902a9a0d925080
https://github.com/WebKit/WebKit/commit/ba0578f34b1d565deb05a1db81902a9a0d925080
Author: Miguel Gomez <[email protected]>
Date: 2024-04-05 (Fri, 05 Apr 2024)
Changed paths:
M Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
M Source/WebCore/platform/graphics/holepunch/MediaPlayerPrivateHolePunch.cpp
M Source/WebCore/platform/graphics/nicosia/NicosiaContentLayer.cpp
M Source/WebCore/platform/graphics/nicosia/NicosiaContentLayer.h
M Source/WebCore/platform/graphics/nicosia/NicosiaGCGLANGLELayer.cpp
M Source/WebCore/platform/graphics/nicosia/NicosiaImageBufferPipe.cpp
M
Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp
M Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.h
M
Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyDMABuf.cpp
M
Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyDMABuf.h
M
Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyGL.cpp
M
Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyGL.h
M
Source/WebKit/WebProcess/GPU/graphics/gbm/RemoteGraphicsContextGLProxyGBM.cpp
Log Message:
-----------
[GTK][WPE] Add a content type property to TextureMapperPlatformLayerProxy
https://bugs.webkit.org/show_bug.cgi?id=272112
Reviewed by Carlos Garcia Campos.
Add a property to TextureMapperPlatformLayerProxy to indicate the type of
frames that are passing through it. The type can be WebGL, Video,
OffscreenCanvas or HolePuch.
We don't want to have proxies without a defined content type, so this patch
removes the method to create a Nicosia::ContentLayer that doesn't receive
a proxy and creates one whose content type is not known. This way, the code
that creates the Nicosia::ContentLayer has to specifically create a proxy
with a defined content type for it.
This change removes the need of the of the disableBufferInvalidation parameter
in the TextureMapperPlatformLayerProxyGL constructor, as this is only used for
the HolePunch case. Now that the proxy knows when it's handling HolePunch
buffers, the previous condition can be reworked.
* Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivateGStreamer::MediaPlayerPrivateGStreamer):
* Source/WebCore/platform/graphics/holepunch/MediaPlayerPrivateHolePunch.cpp:
(WebCore::MediaPlayerPrivateHolePunch::MediaPlayerPrivateHolePunch):
* Source/WebCore/platform/graphics/nicosia/NicosiaContentLayer.cpp:
* Source/WebCore/platform/graphics/nicosia/NicosiaContentLayer.h:
* Source/WebCore/platform/graphics/nicosia/NicosiaGCGLANGLELayer.cpp:
(Nicosia::GCGLANGLELayer::GCGLANGLELayer):
* Source/WebCore/platform/graphics/nicosia/NicosiaImageBufferPipe.cpp:
(Nicosia::NicosiaImageBufferPipeSource::NicosiaImageBufferPipeSource):
* Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.cpp:
(WebCore::TextureMapperPlatformLayerProxy::TextureMapperPlatformLayerProxy):
* Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxy.h:
(WebCore::TextureMapperPlatformLayerProxy::contentType const):
*
Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyDMABuf.cpp:
(WebCore::TextureMapperPlatformLayerProxyDMABuf::TextureMapperPlatformLayerProxyDMABuf):
*
Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyDMABuf.h:
* Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyGL.cpp:
(WebCore::TextureMapperPlatformLayerProxyGL::TextureMapperPlatformLayerProxyGL):
(WebCore::TextureMapperPlatformLayerProxyGL::invalidate):
* Source/WebCore/platform/graphics/texmap/TextureMapperPlatformLayerProxyGL.h:
* Source/WebKit/WebProcess/GPU/graphics/gbm/RemoteGraphicsContextGLProxyGBM.cpp:
(WebKit::NicosiaDisplayDelegate::NicosiaDisplayDelegate):
Canonical link: https://commits.webkit.org/277110@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes