Changeset 245216 in webkit
- Timestamp:
- May 12, 2019 7:56:13 PM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r245215 r245216 1 2019-05-12 Youenn Fablet <youenn@apple.com> 2 3 Use the main screen for screen capture 4 https://bugs.webkit.org/show_bug.cgi?id=197804 5 <rdar://problem/47671383> 6 7 Reviewed by Eric Carlson. 8 9 If the main screen, i.e. the screen that has focus at the time of 10 selection of the screen to capture, is capturable, add it to the list 11 of screen devices, but do not add any other screen. 12 This will make sure the main screen is selected. 13 Manually tested. 14 15 * platform/mediastream/mac/ScreenDisplayCaptureSourceMac.mm: 16 (WebCore::ScreenDisplayCaptureSourceMac::screenCaptureDevices): 17 1 18 2019-05-12 Takashi Komori <Takashi.Komori@sony.com> 2 19 -
trunk/Source/WebCore/platform/mediastream/mac/ScreenDisplayCaptureSourceMac.mm
r243033 r245216 36 36 #include "NotImplemented.h" 37 37 #include "PlatformLayer.h" 38 #include "PlatformScreen.h" 38 39 #include "RealtimeMediaSourceSettings.h" 39 40 #include "RealtimeVideoUtilities.h" … … 304 305 void ScreenDisplayCaptureSourceMac::screenCaptureDevices(Vector<CaptureDevice>& displays) 305 306 { 307 auto screenID = displayID([NSScreen mainScreen]); 308 if (CGDisplayIDToOpenGLDisplayMask(screenID)) { 309 CaptureDevice displayDevice(String::number(screenID), CaptureDevice::DeviceType::Screen, makeString("Screen 0")); 310 displayDevice.setEnabled(true); 311 displays.append(WTFMove(displayDevice)); 312 return; 313 } 314 306 315 uint32_t displayCount = 0; 307 316 auto err = CGGetActiveDisplayList(0, nullptr, &displayCount);
Note: See TracChangeset
for help on using the changeset viewer.