Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Move extended color detection into Open Source
https://bugs.webkit.org/show_bug.cgi?id=155909 <rdar://problem/25369754> Reviewed by Anders Carlsson. The code for detecting extended color displays was hidden while the iPad Pro 9.7" was in development. Now it is public, move the detection to Open Source. While doing this, add a new method to PlatformScreen so that we have a more obvious way to detect such displays. Source/WebCore: * platform/PlatformScreen.h: Add screenSupportsExtendedColor. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: (PlatformCALayerCocoa::commonInit): Set the backing store format to the RGBA10XR if we're on an extended display. * platform/ios/LegacyTileGridTile.mm: (WebCore::LegacyTileGridTile::LegacyTileGridTile): Ditto. (WebCore::setBackingStoreFormat): Deleted. Now set directly in the constructor. * platform/ios/PlatformScreenIOS.mm: (WebCore::screenDepthPerComponent): Cleanup. (WebCore::screenSupportsExtendedColor): Implement the iOS version of this using MobileGestalt. * platform/mac/PlatformScreenMac.mm: (WebCore::displayFromWidget): Whitespace cleanup. (WebCore::screenForWidget): (WebCore::screenForWindow): (WebCore::screenSupportsExtendedColor): Default implementation returns false for all screens at the moment. * platform/spi/cocoa/QuartzCoreSPI.h: New constant. * platform/spi/ios/MobileGestaltSPI.h: Ditto. Source/WebKit2: * Shared/mac/RemoteLayerBackingStore.mm: (WebKit::bufferFormat): No need to use WebKitAdditions any more. Canonical link: https://commits.webkit.org/174023@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198719 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
10 changed files
with
107 additions
and
41 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
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