10BC0 Allow ImageBufferShareableBitmapBackend to create a ShareableBitmap u… · WebKit/WebKit@416fea3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 416fea3

Browse files
committed
Allow ImageBufferShareableBitmapBackend to create a ShareableBitmap using PixelFormat::BGRX
https://bugs.webkit.org/show_bug.cgi?id=250542 rdar://104142373 Reviewed by Simon Fraser. After bug 250100, we can create tile ImageBuffers with PixelFormat::BGRX. We can get in here with UI side compositing enabled and accelerated drawing disabled. * Source/WebKit/WebProcess/GPU/graphics/ImageBufferShareableBitmapBackend.cpp: (WebKit::ImageBufferShareableBitmapBackend::create): Canonical link: https://commits.webkit.org/258862@main
1 parent b7cf9b0 commit 416fea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/WebKit/WebProcess/GPU/graphics/ImageBufferShareableBitmapBackend.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ size_t ImageBufferShareableBitmapBackend::calculateMemoryCost(const Parameters&
7777

7878
std::unique_ptr<ImageBufferShareableBitmapBackend> ImageBufferShareableBitmapBackend::create(const Parameters& parameters, const WebCore::ImageBufferCreationContext&)
7979
{
80-
// ASSERT(parameters.pixelFormat == PixelFormat::BGRA8);
80+
ASSERT(parameters.pixelFormat == PixelFormat::BGRA8 || parameters.pixelFormat == PixelFormat::BGRX8);
8181

8282
IntSize backendSize = calculateSafeBackendSize(parameters);
8383
if (backendSize.isEmpty())

0 commit comments

Comments
 (0)
0