WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
133454
Update PlatformTimeRanges to use MediaTime rather than doubles for time values.
https://bugs.webkit.org/show_bug.cgi?id=133454
Summary
Update PlatformTimeRanges to use MediaTime rather than doubles for time values.
Jer Noble
Reported
2014-06-02 11:16:22 PDT
Update PlatformTimeRanges to use MediaTime rather than doubles for time values.
Attachments
Patch
(23.36 KB, patch)
2014-06-02 13:08 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(25.20 KB, patch)
2014-06-02 13:54 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(26.68 KB, patch)
2014-06-02 14:35 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(26.93 KB, patch)
2014-06-02 14:58 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from webkit-ews-03 for mac-mountainlion
(501.58 KB, application/zip)
2014-06-02 16:29 PDT
,
Build Bot
no flags
Details
Patch
(26.84 KB, patch)
2014-06-02 16:43 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(29.05 KB, patch)
2014-06-02 16:46 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(28.98 KB, patch)
2014-06-02 16:57 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(28.96 KB, patch)
2014-06-02 21:02 PDT
,
Jer Noble
no flags
Details
Formatted Diff
Diff
Patch
(28.97 KB, patch)
2014-06-03 10:16 PDT
,
Jer Noble
eric.carlson
: review+
Details
Formatted Diff
Diff
Show Obsolete
(8)
View All
Add attachment
proposed patch, testcase, etc.
Jer Noble
Comment 1
2014-06-02 13:08:06 PDT
Created
attachment 232395
[details]
Patch
Jer Noble
Comment 2
2014-06-02 13:54:52 PDT
Created
attachment 232397
[details]
Patch
Eric Carlson
Comment 3
2014-06-02 14:31:14 PDT
Comment on
attachment 232397
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=232397&action=review
> Source/WebCore/Modules/mediasource/SourceBuffer.cpp:1404 > + MediaTime currentTime = MediaTime::createWithDouble(m_source->currentTime()); > const PlatformTimeRanges& ranges = m_buffered->ranges(); > if (!ranges.length()) > return false;
Nit: no need to create "currentTime" if ranges is empty.
> Source/WebCore/platform/graphics/PlatformTimeRanges.h:74 > + Range(MediaTime start, MediaTime end)
Nit: any reason to not make these "const MediaTime&"?
> Source/WebCore/platform/graphics/PlatformTimeRanges.h:82 > + inline bool isPointInRange(MediaTime point) const
Ditto.
Jer Noble
Comment 4
2014-06-02 14:35:00 PDT
Created
attachment 232399
[details]
Patch
Jer Noble
Comment 5
2014-06-02 14:40:23 PDT
(In reply to
comment #3
)
> (From update of
attachment 232397
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=232397&action=review
> > > Source/WebCore/Modules/mediasource/SourceBuffer.cpp:1404 > > + MediaTime currentTime = MediaTime::createWithDouble(m_source->currentTime()); > > const PlatformTimeRanges& ranges = m_buffered->ranges(); > > if (!ranges.length()) > > return false; > > Nit: no need to create "currentTime" if ranges is empty.
I'll reverse the order.
> > Source/WebCore/platform/graphics/PlatformTimeRanges.h:74 > > + Range(MediaTime start, MediaTime end) > > Nit: any reason to not make these "const MediaTime&"?
Nope, no reason.
> > Source/WebCore/platform/graphics/PlatformTimeRanges.h:82 > > + inline bool isPointInRange(MediaTime point) const > > Ditto.
Ditto.
Jer Noble
Comment 6
2014-06-02 14:58:05 PDT
Created
attachment 232400
[details]
Patch
Build Bot
Comment 7
2014-06-02 16:29:54 PDT
Comment on
attachment 232400
[details]
Patch
Attachment 232400
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/5635521531346944
New failing tests: media/video-pause-immediately.html
Build Bot
Comment 8
2014-06-02 16:29:59 PDT
Created
attachment 232404
[details]
Archive of layout-test-results from webkit-ews-03 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-03 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Jer Noble
Comment 9
2014-06-02 16:43:04 PDT
Created
attachment 232407
[details]
Patch
Jer Noble
Comment 10
2014-06-02 16:46:24 PDT
Created
attachment 232408
[details]
Patch Updated test to allow for very small deltas between the end buffered time and the end played time.
Jer Noble
Comment 11
2014-06-02 16:57:02 PDT
Created
attachment 232409
[details]
Patch
Jer Noble
Comment 12
2014-06-02 21:02:46 PDT
Created
attachment 232414
[details]
Patch
Jer Noble
Comment 13
2014-06-03 10:16:06 PDT
Created
attachment 232432
[details]
Patch
Jer Noble
Comment 14
2014-06-03 14:09:49 PDT
Committed
r169568
: <
http://trac.webkit.org/changeset/169568
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug