Changeset 220454 in webkit
- Timestamp:
- Aug 9, 2017 6:06:11 AM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r220453 r220454 1 2017-08-09 Ms2ger <Ms2ger@igalia.com> 2 3 Remove unnecessary copies of PlatformMediaSessionManager::m_sessions 4 https://bugs.webkit.org/show_bug.cgi?id=175375 5 6 Reviewed by Sam Weinig. 7 8 Remove unnecessary copies of PlatformMediaSessionManager::m_sessions. 9 10 These should have been removed in r207688. 11 12 No new tests: no behavior change. 13 14 * platform/audio/PlatformMediaSessionManager.cpp: 15 (WebCore::PlatformMediaSessionManager::applicationWillBecomeInactive const): 16 (WebCore::PlatformMediaSessionManager::applicationDidBecomeActive const): 17 (WebCore::PlatformMediaSessionManager::applicationDidEnterBackground const): 18 (WebCore::PlatformMediaSessionManager::applicationWillEnterForeground const): 19 1 20 2017-08-09 Chris Dumez <cdumez@apple.com> 2 21 -
trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp
r220411 r220454 299 299 LOG(Media, "PlatformMediaSessionManager::applicationWillBecomeInactive"); 300 300 301 Vector<PlatformMediaSession*> sessions = m_sessions;302 301 forEachSession([&] (PlatformMediaSession& session, size_t) { 303 302 if (m_restrictions[session.mediaType()] & InactiveProcessPlaybackRestricted) … … 310 309 LOG(Media, "PlatformMediaSessionManager::applicationDidBecomeActive"); 311 310 312 Vector<PlatformMediaSession*> sessions = m_sessions;313 311 forEachSession([&] (PlatformMediaSession& session, size_t) { 314 312 if (m_restrictions[session.mediaType()] & InactiveProcessPlaybackRestricted) … … 325 323 326 324 m_isApplicationInBackground = true; 327 328 Vector<PlatformMediaSession*> sessions = m_sessions; 325 329 326 forEachSession([&] (PlatformMediaSession& session, size_t) { 330 327 if (suspendedUnderLock && m_restrictions[session.mediaType()] & SuspendedUnderLockPlaybackRestricted) … … 344 341 m_isApplicationInBackground = false; 345 342 346 Vector<PlatformMediaSession*> sessions = m_sessions;347 343 forEachSession([&] (PlatformMediaSession& session, size_t) { 348 344 if ((suspendedUnderLock && m_restrictions[session.mediaType()] & SuspendedUnderLockPlaybackRestricted) || m_restrictions[session.mediaType()] & BackgroundProcessPlaybackRestricted)
Note: See TracChangeset
for help on using the changeset viewer.