Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bb75cbc0003033ea73c42ef02370767aa52d6ba6
https://github.com/WebKit/WebKit/commit/bb75cbc0003033ea73c42ef02370767aa52d6ba6
Author: Carlos Garcia Campos <[email protected]>
Date: 2026-09-23 (Wed, 23 Sep 2026)
Changed paths:
M Source/WebCore/platform/CoordinatedGraphics.cmake
M
Source/WebCore/platform/graphics/coordinated/CoordinatedImageBackingStore.cpp
M
Source/WebCore/platform/graphics/coordinated/CoordinatedImageBackingStore.h
M
Source/WebCore/platform/graphics/coordinated/CoordinatedPlatformLayerBufferDMABuf.cpp
M
Source/WebCore/platform/graphics/coordinated/CoordinatedPlatformLayerBufferVideo.cpp
A
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedImageBackingStoreTextureMapper.cpp
A
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferDMABufTextureMapper.cpp
A
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferVideoTextureMapper.cpp
Log Message:
-----------
[CoordinatedGraphics] Move texture mapper specific code to their own files
https://bugs.webkit.org/show_bug.cgi?id=324820
Reviewed by Nikolas Zimmermann.
There are some files in coordinated graphics that are mostly a big #if
USE(TEXTURE_MAPPER) #else #endif. It's easier to read if we split those
files.
* Source/WebCore/platform/CoordinatedGraphics.cmake:
* Source/WebCore/platform/graphics/coordinated/CoordinatedImageBackingStore.cpp:
(WebCore::CoordinatedImageBackingStore::CoordinatedImageBackingStore):
(WebCore::CoordinatedImageBackingStore::isSameNativeImage): Deleted.
* Source/WebCore/platform/graphics/coordinated/CoordinatedImageBackingStore.h:
*
Source/WebCore/platform/graphics/coordinated/CoordinatedPlatformLayerBufferDMABuf.cpp:
(WebCore::CoordinatedPlatformLayerBufferDMABuf::CoordinatedPlatformLayerBufferDMABuf):
(WebCore::importToTexture): Deleted.
(WebCore::formatIsYUV): Deleted.
(WebCore::yuvFormatPlaneInfo): Deleted.
(WebCore::yuvFormatFromDRMFourcc): Deleted.
(WebCore::importYUV): Deleted.
(WebCore::CoordinatedPlatformLayerBufferDMABuf::importDMABuf const): Deleted.
(WebCore::CoordinatedPlatformLayerBufferDMABuf::paintToTextureMapper): Deleted.
*
Source/WebCore/platform/graphics/coordinated/CoordinatedPlatformLayerBufferVideo.cpp:
(WebCore::CoordinatedPlatformLayerBufferVideo::CoordinatedPlatformLayerBufferVideo):
(WebCore::CoordinatedPlatformLayerBufferVideo::createBufferIfNeeded): Deleted.
(WebCore::CoordinatedPlatformLayerBufferVideo::createBufferFromDMABufMemory):
Deleted.
(WebCore::yuvFormatFromGstVideoFormat): Deleted.
(WebCore::yuvColorSpaceFromVideoInfo): Deleted.
(WebCore::CoordinatedPlatformLayerBufferVideo::createBufferFromGLMemory):
Deleted.
(WebCore::CoordinatedPlatformLayerBufferVideo::createBufferFromMappedFrameIfNeeded):
Deleted.
(WebCore::CoordinatedPlatformLayerBufferVideo::paintToTextureMapper): Deleted.
*
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedImageBackingStoreTextureMapper.cpp:
Copied from
Source/WebCore/platform/graphics/coordinated/CoordinatedImageBackingStore.cpp.
(WebCore::CoordinatedImageBackingStore::create):
(WebCore::CoordinatedImageBackingStore::CoordinatedImageBackingStore):
*
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferDMABufTextureMapper.cpp:
Copied from
Source/WebCore/platform/graphics/coordinated/CoordinatedPlatformLayerBufferDMABuf.cpp.
(WebCore::CoordinatedPlatformLayerBufferDMABuf::create):
(WebCore::CoordinatedPlatformLayerBufferDMABuf::CoordinatedPlatformLayerBufferDMABuf):
(WebCore::importToTexture):
(WebCore::formatIsYUV):
(WebCore::yuvFormatPlaneInfo):
(WebCore::yuvFormatFromDRMFourcc):
(WebCore::importYUV):
(WebCore::CoordinatedPlatformLayerBufferDMABuf::importDMABuf const):
(WebCore::CoordinatedPlatformLayerBufferDMABuf::paintToTextureMapper):
*
Source/WebCore/platform/graphics/texmap/coordinated/CoordinatedPlatformLayerBufferVideoTextureMapper.cpp:
Added.
(WebCore::CoordinatedPlatformLayerBufferVideo::create):
(WebCore::CoordinatedPlatformLayerBufferVideo::CoordinatedPlatformLayerBufferVideo):
(WebCore::CoordinatedPlatformLayerBufferVideo::createBufferIfNeeded):
(WebCore::CoordinatedPlatformLayerBufferVideo::createBufferFromDMABufMemory):
(WebCore::CoordinatedPlatformLayerBufferVideo::copyBuffer const):
(WebCore::yuvFormatFromGstVideoFormat):
(WebCore::yuvColorSpaceFromVideoInfo):
(WebCore::CoordinatedPlatformLayerBufferVideo::createBufferFromGLMemory):
(WebCore::CoordinatedPlatformLayerBufferVideo::createBufferFromMappedFrameIfNeeded):
(WebCore::CoordinatedPlatformLayerBufferVideo::paintToTextureMapper):
Canonical link: https://commits.webkit.org/321680@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications