-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ImageBufferBackend specific isOriginAtBottomLeftCorner
https://bugs.webkit.org/show_bug.cgi?id=273676 rdar://127480089 Reviewed by Simon Fraser. GraphicsContext has its origin at the top left corner. Currently Cocoa CG is the only one using ImageBufferBackendSubclass::originAtBottomLeftCorner == true. Currently Cocoa does not have any other GraphicsContexts than CG. Hardcode the logic into ImageBufferBackend. This way the base transform can be computed without knowing which type backend is. This is needed for RemoteImageBufferProxy construction, where the backend, currently, is obtained only after GPUP has decided which backend worked. This is work towards removeing the RemoteImageBufferProxy::create<Backend> template parameter. That is work towards being able to fix deadlocks wrt. cross-thread ImageBuffer use in GPUP. * Source/WebCore/platform/graphics/ImageBuffer.h: (WebCore::ImageBuffer::populateBackendInfo): * Source/WebCore/platform/graphics/ImageBufferBackend.cpp: (WebCore::ImageBufferBackend::calculateBaseTransform): * Source/WebCore/platform/graphics/ImageBufferBackend.h: (WebCore::ImageBufferBackend::originAtBottomLeftCorner const): Deleted. * Source/WebCore/platform/graphics/cg/ImageBufferCGBackend.cpp: (WebCore::ImageBufferCGBackend::applyBaseTransform const): (WebCore::ImageBufferCGBackend::originAtBottomLeftCorner const): Deleted. * Source/WebCore/platform/graphics/cg/ImageBufferCGBackend.h: * Source/WebKit/WebProcess/GPU/graphics/RemoteRenderingBackendProxy.cpp: (WebKit::RemoteRenderingBackendProxy::createDisplayListRecorder): * Source/WebKit/WebProcess/GPU/graphics/cocoa/ImageBufferRemoteIOSurfaceBackend.h: * Source/WebKit/WebProcess/GPU/graphics/cocoa/ImageBufferShareableMappedIOSurfaceBitmapBackend.h: Canonical link: https://commits.webkit.org/278505@main
- Loading branch information
1 parent
87a9d5d
commit af6077a
Showing
8 changed files
with
12 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters