Changeset 186084 in webkit
- Timestamp:
- Jun 29, 2015 2:01:29 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r186083 r186084 1 2015-06-29 Matt Rajca <mrajca@apple.com> 2 3 MediaSession: use a HashSet for the collection of participating elements 4 https://bugs.webkit.org/show_bug.cgi?id=146421 5 6 Reviewed by Eric Carlson. 7 8 * Modules/mediasession/MediaSession.cpp: 9 (WebCore::MediaSession::addMediaElement): 10 (WebCore::MediaSession::removeMediaElement): 11 * Modules/mediasession/MediaSession.h: 12 1 13 2015-06-29 Dean Jackson <dino@apple.com> 2 14 -
trunk/Source/WebCore/Modules/mediasession/MediaSession.cpp
r186064 r186084 108 108 { 109 109 ASSERT(!m_participatingElements.contains(&element)); 110 m_participatingElements.a ppend(&element);110 m_participatingElements.add(&element); 111 111 } 112 112 … … 114 114 { 115 115 ASSERT(m_participatingElements.contains(&element)); 116 m_participatingElements.remove( m_participatingElements.find(&element));116 m_participatingElements.remove(&element); 117 117 } 118 118 -
trunk/Source/WebCore/Modules/mediasession/MediaSession.h
r186072 r186084 93 93 94 94 State m_currentState { State::Idle }; 95 Vector<HTMLMediaElement*> m_participatingElements;95 HashSet<HTMLMediaElement*> m_participatingElements; 96 96 HashSet<HTMLMediaElement*> m_activeParticipatingElements; 97 97 HashSet<HTMLMediaElement*>* m_iteratedActiveParticipatingElements { nullptr };
Note: See TracChangeset
for help on using the changeset viewer.