Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8d6126fe8b505e74482ab5583385b01d45d5f9dd
https://github.com/WebKit/WebKit/commit/8d6126fe8b505e74482ab5583385b01d45d5f9dd
Author: Fujii Hironori <[email protected]>
Date: 2023-04-10 (Mon, 10 Apr 2023)
Changed paths:
M Source/WebCore/platform/graphics/texmap/TextureMapper.h
M Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
M Source/WebCore/platform/graphics/texmap/TextureMapperGL.h
M Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp
M Source/WebKit/GPUProcess/graphics/wc/WCScene.cpp
Log Message:
-----------
TextureMapperGL: Support painting to a BitmapTexture instead of the default
frame buffer
https://bugs.webkit.org/show_bug.cgi?id=255213
Reviewed by Don Olmstead.
TextureMapperGL was supporting to paint only to the default frame
buffer. This change added the support of painting to a BitmapTexture.
Changed TextureMapperGL::beginPainting to take an optional
BitmapTexture to paint.
This is used for the offscreen rendering mode of Windows port.
Previously it was using the back buffer of the frame buffer.
WCScene::update allocates a BitmapTextureGL and paints a layer tree to
it.
* Source/WebCore/platform/graphics/texmap/TextureMapper.h:
(WebCore::TextureMapper::beginPainting):
* Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp:
(WebCore::TextureMapperGL::beginPainting):
(WebCore::TextureMapperGL::bindDefaultSurface):
(WebCore::TextureMapperGL::bindSurface):
(WebCore::TextureMapperGL::setDepthRange):
(WebCore::TextureMapperGL::updateProjectionMatrix):
* Source/WebCore/platform/graphics/texmap/TextureMapperGL.h:
* Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::paint):
* Source/WebKit/GPUProcess/graphics/wc/WCScene.cpp:
(WebKit::WCScene::update):
Canonical link: https://commits.webkit.org/262781@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes