Bug 146839 - Change load(MediaStreamPrivate*) method to use references
Summary: Change load(MediaStreamPrivate*) method to use references
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Matthew Daiter
URL:
Keywords: InRadar, PlatformOnly
: 146811 (view as bug list)
Depends on:
Blocks: 146788
  Show dependency treegraph
 
Reported: 2015-07-10 10:45 PDT by Matthew Daiter
Modified: 2015-07-13 12:51 PDT (History)
7 users (show)

See Also:


Attachments
Patch (6.58 KB, patch)
2015-07-10 10:55 PDT, Matthew Daiter
no flags Details | Formatted Diff | Diff
Patch (8.13 KB, patch)
2015-07-10 13:33 PDT, Matthew Daiter
no flags Details | Formatted Diff | Diff
Patch (8.12 KB, patch)
2015-07-10 16:45 PDT, Matthew Daiter
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Daiter 2015-07-10 10:45:26 PDT
MediaPlayerPrivateInterface derivatives should be able to load MediaStreamPrivate methods without worrying about whether the MediaStreamPrivate is null or not.
Comment 1 Radar WebKit Bug Importer 2015-07-10 10:48:04 PDT
<rdar://problem/21769035>
Comment 2 Matthew Daiter 2015-07-10 10:55:21 PDT
Created attachment 256592 [details]
Patch
Comment 3 Matthew Daiter 2015-07-10 13:33:56 PDT
Created attachment 256607 [details]
Patch
Comment 4 Darin Adler 2015-07-10 13:46:24 PDT
Comment on attachment 256607 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=256607&action=review

So no one uses this argument yet?

> Source/WebCore/platform/graphics/MediaPlayer.cpp:427
> +            m_private->load(*m_mediaStream.get());

Should not need .get() here.

> Source/WebCore/platform/mock/mediasource/MockMediaPlayerMediaSource.h:64
> +    virtual void load(MediaStreamPrivate&) override { };

Should remove the stray semicolon here.
Comment 5 Matthew Daiter 2015-07-10 16:45:03 PDT
Created attachment 256626 [details]
Patch
Comment 6 Brent Fulgham 2015-07-13 10:06:49 PDT
*** Bug 146811 has been marked as a duplicate of this bug. ***
Comment 7 Brent Fulgham 2015-07-13 11:38:19 PDT
Turning off cq+, because Matthew hasn't addressed Darin's comments.
Comment 8 Brent Fulgham 2015-07-13 12:46:37 PDT
(In reply to comment #4)
> Comment on attachment 256607 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=256607&action=review
> 
> So no one uses this argument yet?
> 
> > Source/WebCore/platform/graphics/MediaPlayer.cpp:427
> > +            m_private->load(*m_mediaStream.get());
> 
> Should not need .get() here.

I'll fix while landing.

> > Source/WebCore/platform/mock/mediasource/MockMediaPlayerMediaSource.h:64
> > +    virtual void load(MediaStreamPrivate&) override { };
> 
> Should remove the stray semicolon here.

Ditto.
Comment 9 Brent Fulgham 2015-07-13 12:51:51 PDT
Committed r186769: <http://trac.webkit.org/changeset/186769>