DescriptionMerge 142773
> MediaStream API: Use the source id when creating new tracks
> https://bugs.webkit.org/show_bug.cgi?id=109688
>
> Reviewed by Adam Barth.
>
> Source/Platform:
>
> Added id to initialize and renamed audio/videoSources to audio/videoTracks.
>
> * chromium/public/WebMediaStream.h:
> (WebKit):
> (WebMediaStream):
> (WebKit::WebMediaStream::audioSources):
> (WebKit::WebMediaStream::videoSources):
> * chromium/public/WebMediaStreamTrack.h:
> (WebMediaStreamTrack):
>
> Source/WebCore:
>
> This patch reuses the ids from the source when creating tracks instead of creating a new one.
> This was requested by the chromium port to greatly simplify their implementation.
> In the longer run the API should be rewritten to only use tracks instead of sources.
>
> Covered by existing tests.
>
> * platform/chromium/support/WebMediaStream.cpp:
> (WebKit::WebMediaStream::audioTracks):
> (WebKit::WebMediaStream::videoTracks):
> (WebKit::WebMediaStream::initialize):
> (WebKit):
> * platform/chromium/support/WebMediaStreamTrack.cpp:
> (WebKit::WebMediaStreamTrack::initialize):
> (WebKit):
> * platform/mediastream/MediaStreamComponent.h:
> (WebCore::MediaStreamComponent::create):
> (MediaStreamComponent):
> (WebCore::MediaStreamComponent::MediaStreamComponent):
> (WebCore):
> * platform/mediastream/MediaStreamDescriptor.h:
> (WebCore::MediaStreamDescriptor::create):
> (MediaStreamDescriptor):
> (WebCore::MediaStreamDescriptor::MediaStreamDescriptor):
>
> Tools:
>
> Switching mock to new API.
>
> * DumpRenderTree/chromium/TestRunner/src/WebUserMediaClientMock.cpp:
> (WebTestRunner::WebUserMediaClientMock::requestUserMedia):
>
TBR=dharani@google.com
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=143919
Patch Set 1 #
Messages
Total messages: 2 (0 generated)
|