-
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.
Add NativeImageBackend to support GPUP NativeImage
https://bugs.webkit.org/show_bug.cgi?id=266216 rdar://119489321 Reviewed by Matt Woodrow. Add NativeImageBackend interface that future work can use to implement NativeImage that exists in GPUP. NativeImage instances are held as members of objects. Thus the interface cannot be based on NativeImage itself, because this would mean that transitioning from local to remote would need the held objects replaced. Instead, make the polymorphic extension point the "backend", similar to current ImageBuffer. * Source/WebCore/platform/graphics/NativeImage.cpp: (WebCore::PlatformImageNativeImageBackend::platformImage const): (WebCore::PlatformImageNativeImageBackend::PlatformImageNativeImageBackend): (WebCore::NativeImage::create): (WebCore::NativeImage::NativeImage): (WebCore::NativeImage::platformImage const): (WebCore::NativeImage::replaceContents): (WebCore::NativeImage::setPlatformImage): Deleted. * Source/WebCore/platform/graphics/NativeImage.h: * Source/WebCore/platform/graphics/cg/NativeImageCG.cpp: (WebCore::NativeImage::create): (WebCore::NativeImage::size const): (WebCore::NativeImage::hasAlpha const): (WebCore::NativeImage::singlePixelSolidColor const): (WebCore::NativeImage::colorSpace const): (WebCore::NativeImage::clearSubimages): * Source/WebKit/WebProcess/GPU/graphics/RemoteResourceCacheProxy.cpp: (WebKit::createShareableBitmapFromNativeImage): Canonical link: https://commits.webkit.org/272103@main
- Loading branch information
1 parent
273f225
commit aaab202
Showing
5 changed files
with
107 additions
and
46 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