gecko-dev/widget/cocoa
Jeff Muizelaar f2b7a41716 Bug 1650475. Enable GPU switching on Mac. r=kvark
The goal here is to make it so that we don't special case the device on Mac
so that we can switch GPUs without needing to reset any state.

There a couple of parts to this:
1. Disable texture storage so that we can use BGRA textures and don't need swizzling.
2. Use the recommended GL_UNSIGNED_INT_8_8_8_8_REV for BGRA on desktop GL.
3. Disable swizzling.
4. Always do the PBO workaround.

Differential Revision: https://phabricator.services.mozilla.com/D82223
2020-07-08 01:56:55 +00:00
..
crashtests Bug 1596327, rename .xul test files in widget/ to .xhtml r=jmathies 2019-11-20 19:05:30 +00:00
cursors
docs Bug 1644047 - Add some documentation about SDKs and using macOS APIs. r=spohl 2020-06-08 21:41:04 +00:00
resources/MainMenu.nib
CFTypeRefPtr.h Bug 1578099 - Make CFTypeRefPtr usable as a key inside an unordered_map. r=mattwoodrow 2019-09-01 21:38:42 +00:00
ComplexTextInputPanel.h
ComplexTextInputPanel.mm Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl 2019-01-21 18:18:16 +01:00
CustomCocoaEvents.h
DesktopBackgroundImage.h Bug 1629313 - Part 1 - Set As Desktop Background fails on macOS r=spohl 2020-04-21 19:57:29 +00:00
DesktopBackgroundImage.mm Bug 1629313 - Part 1 - Set As Desktop Background fails on macOS r=spohl 2020-04-21 19:57:29 +00:00
GfxInfo.h Bug 1649490 - detect all Mac GPUs r=mstange 2020-07-03 21:11:02 +00:00
GfxInfo.mm Bug 1650475. Enable GPU switching on Mac. r=kvark 2020-07-08 01:56:55 +00:00
MediaHardwareKeysEventSourceMac.h Bug 1640998 - part9 : use `MediaControlKey` to replace `MediaControlKeysEvent` r=chunmin,agi,geckoview-reviewers 2020-06-09 02:59:57 +00:00
MediaHardwareKeysEventSourceMac.mm Bug 1640998 - part9 : use `MediaControlKey` to replace `MediaControlKeysEvent` r=chunmin,agi,geckoview-reviewers 2020-06-09 02:59:57 +00:00
MediaHardwareKeysEventSourceMacMediaCenter.h Bug 1640998 - part9 : use `MediaControlKey` to replace `MediaControlKeysEvent` r=chunmin,agi,geckoview-reviewers 2020-06-09 02:59:57 +00:00
MediaHardwareKeysEventSourceMacMediaCenter.mm Bug 1640998 - part9 : use `MediaControlKey` to replace `MediaControlKeysEvent` r=chunmin,agi,geckoview-reviewers 2020-06-09 02:59:57 +00:00
MediaKeysEventSourceFactory.cpp Bug 1640998 - part9 : use `MediaControlKey` to replace `MediaControlKeysEvent` r=chunmin,agi,geckoview-reviewers 2020-06-09 02:59:57 +00:00
MediaPlayerWrapper.h Bug 1591230 - On macOS use MediaPlayer library for media keys when available. r=spohl,alwu 2019-12-31 01:41:33 +00:00
MediaPlayerWrapper.mm Bug 1591230 - On macOS use MediaPlayer library for media keys when available. r=spohl,alwu 2019-12-31 01:41:33 +00:00
NativeKeyBindings.h Bug 1546839 - part 1: Change `enum Command` to `enum class Command` and drop "Command" prefix from each item r=smaug 2019-04-30 04:23:24 +00:00
NativeKeyBindings.mm Bug 1546839 - part 1: Change `enum Command` to `enum class Command` and drop "Command" prefix from each item r=smaug 2019-04-30 04:23:24 +00:00
OSXNotificationCenter.h Bug 1635257 - Implement some of nsIAlertsDoNotDisturb for the macOS NotificationCenter backend. r=mstange 2020-05-16 00:58:29 +00:00
OSXNotificationCenter.mm Bug 1635257 - Implement some of nsIAlertsDoNotDisturb for the macOS NotificationCenter backend. r=mstange 2020-05-16 00:58:29 +00:00
ProcInfo.mm Backed out 7 changesets (bug 1650163, bug 1649477) for bustages on JSActor.cpp . CLOSED TREE 2020-07-08 04:09:27 +03:00
ScreenHelperCocoa.h
ScreenHelperCocoa.mm Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl 2019-01-21 18:18:16 +01:00
SwipeTracker.h Bug 1547422 - Make widget use mozilla::PresShell directly rather than via nsIPresShell r=jmathies 2019-05-01 18:52:59 +00:00
SwipeTracker.mm Bug 1259660 - Cleaned up WidgetMouseEventBase by renaming WidgetMouseEventBase::buttons to WidgetMouseEventBase::mButtons r=masayuki 2019-04-21 19:42:37 +00:00
TextInputHandler.h Bug 1546839 - part 1: Change `enum Command` to `enum class Command` and drop "Command" prefix from each item r=smaug 2019-04-30 04:23:24 +00:00
TextInputHandler.mm Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
VibrancyManager.h Back out bug 1592739 due to multiple regressions (bug 1599366, bug 1601183, bug 1602193). a=backout 2020-02-13 14:26:51 +00:00
VibrancyManager.mm Back out bug 1592739 due to multiple regressions (bug 1599366, bug 1601183, bug 1602193). a=backout 2020-02-13 14:26:51 +00:00
ViewRegion.h
ViewRegion.mm Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl 2019-01-21 18:18:16 +01:00
WidgetTraceEvent.mm Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl 2019-01-21 18:18:16 +01:00
moz.build Bug 1644047 - Add some documentation about SDKs and using macOS APIs. r=spohl 2020-06-08 21:41:04 +00:00
mozView.h Bug 1527412 - Remove unused contextMenu method. r=spohl 2019-02-13 11:14:02 +00:00
nsAppShell.h
nsAppShell.mm Bug 1635577 - add wakelog log. r=spohl,karlt 2020-05-07 19:51:30 +00:00
nsBidiKeyboard.h
nsBidiKeyboard.mm Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl 2019-01-21 18:18:16 +01:00
nsChangeObserver.h
nsChildView.h Bug 1646216 - Don't call CommitToScreen() on the main thread while another thread is compositing. r=jrmuizel 2020-06-17 18:30:58 +00:00
nsChildView.mm Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
nsClipboard.h
nsClipboard.mm Bug 1578164. Use async notifications when requesting decode of an image in most places. r=aosmond 2019-09-03 15:36:23 +00:00
nsCocoaDebugUtils.h
nsCocoaDebugUtils.mm Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl 2019-01-21 18:18:16 +01:00
nsCocoaFeatures.h Bug 1616404: Change macOS version detection to accommodate major versions between 10 and 255 as well as minor and bugfix versions between 0 and 255. r=mstange 2020-05-04 21:11:09 +00:00
nsCocoaFeatures.mm Bug 1616404: Change macOS version detection to accommodate major versions between 10 and 255 as well as minor and bugfix versions between 0 and 255. r=mstange 2020-05-04 21:11:09 +00:00
nsCocoaUtils.h Bug 1581433 - Maximize or minimize the window when double clicking the titlebar. r=spohl 2019-10-08 21:03:30 +00:00
nsCocoaUtils.mm Bug 1648463 - Move SVGForeignObjectFrame SVGImageFrame and SVGUseFrame to mozilla namespace r=dholbert,jgilbert 2020-06-25 20:42:49 +00:00
nsCocoaWindow.h Bug 1644212 - reintroduce an attribute to limit which windows allow full screen, r=xidorn,haik 2020-06-15 15:51:48 +00:00
nsCocoaWindow.mm Bug 1644212 - reintroduce an attribute to limit which windows allow full screen, r=xidorn,haik 2020-06-15 15:51:48 +00:00
nsColorPicker.h Backed out 2 changesets (bug 1543813) for assertion failures. CLOSED TREE 2020-05-28 03:17:13 +03:00
nsColorPicker.mm Bug 1543813: Fix a race condition that can lead to a crash when using the color picker on macOS. r=mstange 2020-05-27 22:07:45 +00:00
nsCursorManager.h Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
nsCursorManager.mm Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
nsDeviceContextSpecX.h Bug 1647480 - Refactor Printer Enumeration to Use nsIPrinter r=jwatt 2020-07-05 19:00:43 +00:00
nsDeviceContextSpecX.mm Bug 1647480 - Refactor Printer Enumeration to Use nsIPrinter r=jwatt 2020-07-05 19:00:43 +00:00
nsDragService.h Bug 1543315 - part 17: Mark PresShell::HandleDOMEventWithTarget() as MOZ_CAN_RUN_SCRIPT r=smaug 2019-05-09 20:21:28 +00:00
nsDragService.mm Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsFilePicker.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsFilePicker.mm Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
nsIconLoaderObserver.h Bug 1521893 - Part 1 - Split off nsMenuItemIconX image loading into a new utility class, nsIconLoaderService, and be its first consumer. r=spohl 2019-07-10 01:23:45 +00:00
nsIconLoaderService.h Bug 1600356 - Part 3 - Streamline Touch Bar image loading. r=spohl 2020-01-03 17:07:25 +00:00
nsIconLoaderService.mm Bug 1618295 - Make imgRequestProxy implement and use PreloaderBase to support the preload as speculative load feature; r=tnikkel,smaug,mayhemer 2020-05-11 14:43:05 +00:00
nsIdleServiceX.h
nsIdleServiceX.mm Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsLookAndFeel.h Bug 1609024 - Remove cache mechanism which is not very useful. r=hiro,snorp,mccr8 2020-05-21 17:02:06 +00:00
nsLookAndFeel.mm Bug 1640623 - Use an enum class for LookAndFeel::FontID. r=jmathies 2020-06-11 11:27:58 +00:00
nsMacCursor.h Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
nsMacCursor.mm Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
nsMacDockSupport.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsMacDockSupport.mm Bug 1577120 - Use the control accent color for the dock download progress bar. r=spohl 2020-06-12 17:03:31 +00:00
nsMacFinderProgress.h Bug 909760 - Show download progress in the MacOS Finder r=spohl,mak 2019-06-19 18:48:49 +00:00
nsMacFinderProgress.mm Bug 1624251 - Fix use-after-free in nsMacFinderProgress r=spohl 2020-03-28 01:46:29 +00:00
nsMacSharingService.h
nsMacSharingService.mm Bug 1629533: Fix an issue that prevented some icons from drawing in the macOS share menu. r=mstange 2020-05-01 22:30:46 +00:00
nsMacWebAppUtils.h
nsMacWebAppUtils.mm Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl 2019-01-21 18:18:16 +01:00
nsMenuBarX.h
nsMenuBarX.mm Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
nsMenuBaseX.h Bug 1522012 - Implement Touch Bar's native customization window and remove ui.touchbar.layout preference. r=spohl,mikedeboer,fluent-reviewers,Pike 2019-07-06 21:10:33 +00:00
nsMenuGroupOwnerX.h
nsMenuGroupOwnerX.mm Bug 1519185: Remove AttributeWillChange aNewValue parameter r=emilio,bzbarsky 2019-01-29 17:59:38 +01:00
nsMenuItemIconX.h Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsMenuItemIconX.mm Bug 1521893 - Part 2 - Support loading SVG icons on the Touch Bar through a new nsTouchBarInputIcon service class. r=spohl 2019-10-07 18:37:15 +00:00
nsMenuItemX.h
nsMenuItemX.mm Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
nsMenuUtilsX.h
nsMenuUtilsX.mm Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
nsMenuX.h Bug 1596488 - Revert mXBLAttached fix for native OSX menus r=spohl 2020-02-03 20:03:16 +00:00
nsMenuX.mm Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj 2020-07-01 08:29:29 +00:00
nsNativeThemeCocoa.h Bug 1592739 - Stop clearing the background behind vibrant -moz-appearance items. r=mattwoodrow 2020-06-11 18:46:39 +00:00
nsNativeThemeCocoa.mm Bug 1650256 - Remove unused StyleAppearance values. r=emilio 2020-07-03 04:06:13 +00:00
nsNativeThemeColors.h Bug 1577120 - Use the control accent color for the dock download progress bar. r=spohl 2020-06-12 17:03:31 +00:00
nsPIWidgetCocoa.idl Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan 2019-05-22 22:37:14 +00:00
nsPrintDialogX.h Bug 1602125. Remove nsIPrintingPromptService.showPrintDialog's nsIWebBrowserPrint parameter and MockWebBrowserPrint. r=bobowen 2019-12-09 09:04:29 +00:00
nsPrintDialogX.mm Bug 1643418. Don't overwrite the print range type if 'Print Selection Only' is unchecked. r=nordzilla 2020-06-04 21:09:12 +00:00
nsPrintSettingsServiceX.h Bug 1602125. Remove nsIPrintingPromptService.showPrintDialog's nsIWebBrowserPrint parameter and MockWebBrowserPrint. r=bobowen 2019-12-09 09:04:29 +00:00
nsPrintSettingsServiceX.mm Bug 1627577 part 3: Use NSPrintInfo for PrintRange, StartPageRange and EndPageRange in the parent on macOS. r=jwatt 2020-05-22 13:54:07 +00:00
nsPrintSettingsX.h Bug 1627577 part 3: Use NSPrintInfo for PrintRange, StartPageRange and EndPageRange in the parent on macOS. r=jwatt 2020-05-22 13:54:07 +00:00
nsPrintSettingsX.mm Bug 1627577 part 3: Use NSPrintInfo for PrintRange, StartPageRange and EndPageRange in the parent on macOS. r=jwatt 2020-05-22 13:54:07 +00:00
nsSandboxViolationSink.h
nsSandboxViolationSink.mm Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl 2019-01-21 18:18:16 +01:00
nsSound.h
nsSound.mm Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan 2019-05-01 08:47:10 +00:00
nsStandaloneNativeMenu.h
nsStandaloneNativeMenu.mm Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl 2019-01-21 18:18:16 +01:00
nsSystemStatusBarCocoa.h
nsSystemStatusBarCocoa.mm Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl 2019-01-21 18:18:16 +01:00
nsToolkit.h Bug 1563994 - [10.15] Right Click When Not Focused Presents "Keystroke Receiving" Access Grant Request Dialog r=mstange 2019-07-31 01:03:49 +00:00
nsToolkit.mm Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan 2019-12-06 09:17:57 +00:00
nsTouchBar.h Bug 1600356 - Part 3 - Streamline Touch Bar image loading. r=spohl 2020-01-03 17:07:25 +00:00
nsTouchBar.mm Bug 1650210 - Fix a clang-11 error in nsTouchBar.mm r=mstange 2020-07-02 20:37:19 +00:00
nsTouchBarInput.h Bug 1600356 - Part 3 - Streamline Touch Bar image loading. r=spohl 2020-01-03 17:07:25 +00:00
nsTouchBarInput.mm Bug 1600356 - Part 3 - Streamline Touch Bar image loading. r=spohl 2020-01-03 17:07:25 +00:00
nsTouchBarInputIcon.h Bug 1600356 - Part 3 - Streamline Touch Bar image loading. r=spohl 2020-01-03 17:07:25 +00:00
nsTouchBarInputIcon.mm Bug 1600356 - Part 3 - Streamline Touch Bar image loading. r=spohl 2020-01-03 17:07:25 +00:00
nsTouchBarNativeAPIDefines.h Bug 1563349 - Part 4 - Support NSPopoverTouchBarItem. r=spohl 2019-10-09 17:55:15 +00:00
nsTouchBarUpdater.h Bug 1563349 - Part 4 - Support NSPopoverTouchBarItem. r=spohl 2019-10-09 17:55:15 +00:00
nsTouchBarUpdater.mm Bug 1600356 - Part 1 - Split out TouchBarInput into its own files. r=spohl 2019-12-31 20:26:00 +00:00
nsWidgetFactory.mm Bug 1647480 - Refactor Printer Enumeration to Use nsIPrinter r=jwatt 2020-07-05 19:00:43 +00:00
nsWindowMap.h
nsWindowMap.mm Bug 1533562 - Implement titlebar gradient drawing with a new TitlebarGradientView. r=spohl 2019-04-29 17:00:13 +00:00