Changeset 220454 in webkit


Ignore:
Timestamp:
Aug 9, 2017 6:06:11 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Remove unnecessary copies of PlatformMediaSessionManager::m_sessions
https://bugs.webkit.org/show_bug.cgi?id=175375

Patch by Ms2ger <Ms2ger@igalia.com> on 2017-08-09
Reviewed by Sam Weinig.

Remove unnecessary copies of PlatformMediaSessionManager::m_sessions.

These should have been removed in r207688.

No new tests: no behavior change.

  • platform/audio/PlatformMediaSessionManager.cpp:

(WebCore::PlatformMediaSessionManager::applicationWillBecomeInactive const):
(WebCore::PlatformMediaSessionManager::applicationDidBecomeActive const):
(WebCore::PlatformMediaSessionManager::applicationDidEnterBackground const):
(WebCore::PlatformMediaSessionManager::applicationWillEnterForeground const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r220453 r220454  
     12017-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
    1202017-08-09  Chris Dumez  <cdumez@apple.com>
    221
  • trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp

    r220411 r220454  
    299299    LOG(Media, "PlatformMediaSessionManager::applicationWillBecomeInactive");
    300300
    301     Vector<PlatformMediaSession*> sessions = m_sessions;
    302301    forEachSession([&] (PlatformMediaSession& session, size_t) {
    303302        if (m_restrictions[session.mediaType()] & InactiveProcessPlaybackRestricted)
     
    310309    LOG(Media, "PlatformMediaSessionManager::applicationDidBecomeActive");
    311310
    312     Vector<PlatformMediaSession*> sessions = m_sessions;
    313311    forEachSession([&] (PlatformMediaSession& session, size_t) {
    314312        if (m_restrictions[session.mediaType()] & InactiveProcessPlaybackRestricted)
     
    325323
    326324    m_isApplicationInBackground = true;
    327    
    328     Vector<PlatformMediaSession*> sessions = m_sessions;
     325
    329326    forEachSession([&] (PlatformMediaSession& session, size_t) {
    330327        if (suspendedUnderLock && m_restrictions[session.mediaType()] & SuspendedUnderLockPlaybackRestricted)
     
    344341    m_isApplicationInBackground = false;
    345342
    346     Vector<PlatformMediaSession*> sessions = m_sessions;
    347343    forEachSession([&] (PlatformMediaSession& session, size_t) {
    348344        if ((suspendedUnderLock && m_restrictions[session.mediaType()] & SuspendedUnderLockPlaybackRestricted) || m_restrictions[session.mediaType()] & BackgroundProcessPlaybackRestricted)
Note: See TracChangeset for help on using the changeset viewer.