Changeset 273725 in webkit
- Timestamp:
- Mar 2, 2021, 1:18:12 AM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
GPUProcess/GPUProcess.cpp (modified) (2 diffs)
-
GPUProcess/GPUProcess.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r273724 r273725 1 2021-03-02 Youenn Fablet <youenn@apple.com> 2 3 Camera capture in iOS with GPUProcess enabled does not always handle orientation well at start up 4 https://bugs.webkit.org/show_bug.cgi?id=222167 5 <rdar://problem/74520496> 6 7 Reviewed by Eric Carlson. 8 9 Before the patch, GPU process orientation monitors were only getting updates after creation of the web process connection. 10 The initial value was therefore sometimes wrong. 11 Update this by storing the orientation value in GPU process and initializing it for every web process connection. 12 Manually tested. 13 14 * GPUProcess/GPUProcess.cpp: 15 (WebKit::GPUProcess::createGPUConnectionToWebProcess): 16 (WebKit::GPUProcess::setOrientationForMediaCapture): 17 * GPUProcess/GPUProcess.h: 18 1 19 2021-03-01 Fujii Hironori <Hironori.Fujii@sony.com> 2 20 -
trunk/Source/WebKit/GPUProcess/GPUProcess.cpp
r273288 r273725 98 98 auto access = m_mediaCaptureAccessMap.take(identifier); 99 99 newConnection->updateCaptureAccess(access.allowAudioCapture, access.allowVideoCapture, access.allowDisplayCapture); 100 newConnection->setOrientationForMediaCapture(m_orientation); 100 101 #endif 101 102 … … 212 213 void GPUProcess::setOrientationForMediaCapture(uint64_t orientation) 213 214 { 215 m_orientation = orientation; 214 216 for (auto& connection : m_webProcessConnections.values()) 215 217 connection->setOrientationForMediaCapture(orientation); -
trunk/Source/WebKit/GPUProcess/GPUProcess.h
r273288 r273725 134 134 RefPtr<WorkQueue> m_videoMediaStreamTrackRendererQueue; 135 135 #endif 136 uint64_t m_orientation { 0 }; 136 137 #endif 137 138 #if USE(LIBWEBRTC) && PLATFORM(COCOA)
Note:
See TracChangeset
for help on using the changeset viewer.