Changeset 259539 in webkit
- Timestamp:
- Apr 4, 2020 4:44:55 PM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r259534 r259539 1 2020-04-04 David Kilzer <ddkilzer@apple.com> 2 3 [GPUP] Remove unnecessary RemoteCDMInstanceSessionIdentifier argument from RemoteCDMFactory::addSession() 4 <https://webkit.org/b/210006> 5 6 Reviewed by Darin Adler. 7 8 * WebProcess/GPU/media/RemoteCDMFactory.cpp: 9 (WebKit::RemoteCDMFactory::addSession): 10 - Remove argument. Use `session` parameter to retrieve the ID. 11 * WebProcess/GPU/media/RemoteCDMFactory.h: 12 (WebKit::RemoteCDMFactory::addSession): 13 - Remove argument. 14 * WebProcess/GPU/media/RemoteCDMInstance.cpp: 15 (WebKit::RemoteCDMInstance::createSession): 16 - Remove argument. 17 1 18 2020-04-04 Wenson Hsieh <wenson_hsieh@apple.com> 2 19 -
trunk/Source/WebKit/WebProcess/GPU/media/RemoteCDMFactory.cpp
r257867 r259539 79 79 } 80 80 81 void RemoteCDMFactory::addSession(Re moteCDMInstanceSessionIdentifier id, Ref<RemoteCDMInstanceSession>&& session)81 void RemoteCDMFactory::addSession(Ref<RemoteCDMInstanceSession>&& session) 82 82 { 83 ASSERT(!m_sessions.contains( id));84 m_sessions.set( id, WTFMove(session));83 ASSERT(!m_sessions.contains(session->identifier())); 84 m_sessions.set(session->identifier(), WTFMove(session)); 85 85 } 86 86 -
trunk/Source/WebKit/WebProcess/GPU/media/RemoteCDMFactory.h
r257867 r259539 69 69 void didReceiveSessionMessage(IPC::Connection&, IPC::Decoder&); 70 70 71 void addSession(Re moteCDMInstanceSessionIdentifier, Ref<RemoteCDMInstanceSession>&&);71 void addSession(Ref<RemoteCDMInstanceSession>&&); 72 72 void removeSession(RemoteCDMInstanceSessionIdentifier); 73 73 -
trunk/Source/WebKit/WebProcess/GPU/media/RemoteCDMInstance.cpp
r259176 r259539 92 92 return nullptr; 93 93 auto session = RemoteCDMInstanceSession::create(makeWeakPtr(m_factory.get()), WTFMove(id)); 94 m_factory->addSession(session ->identifier(), session.copyRef());94 m_factory->addSession(session.copyRef()); 95 95 return session; 96 96 }
Note: See TracChangeset
for help on using the changeset viewer.