Closed
Bug 1214997
Opened 8 years ago
Closed 8 years ago
Use MozPromise in MediaCodecProxy and OMXCodecProxy
Categories
(Core :: Audio/Video: Playback, defect, P2)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla45
Tracking | Status | |
---|---|---|
firefox45 | --- | fixed |
People
(Reporter: sotaro, Assigned: sotaro)
References
Details
Attachments
(1 file, 3 obsolete files)
53.90 KB,
patch
|
sotaro
:
review+
|
Details | Diff | Splinter Review |
It seems nice to use MozPromise in MediaSystemResourceClient.
Updated•8 years ago
|
Priority: -- → P2
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → sotaro.ikeda.g
Assignee | ||
Updated•8 years ago
|
Summary: Return MozPromise by MediaSystemResourceClient::Acquire() → Use MozPromise in MediaCodecProxy and OMXCodecProxy
Assignee | ||
Comment 1•8 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #0) > It seems nice to use MozPromise in MediaSystemResourceClient. bug's scope was changed as to use MozPromise in MediaCodecProxy and OMXCodecProxy.
Assignee | ||
Comment 2•8 years ago
|
||
Assignee | ||
Updated•8 years ago
|
Attachment #8684735 -
Flags: review?(bwu)
Comment 5•8 years ago
|
||
Comment on attachment 8684735 [details] [diff] [review] patch - Use MozPromise in MediaCodecProxy and OMXCodecProxy Review of attachment 8684735 [details] [diff] [review]: ----------------------------------------------------------------- It looks good to me! ::: dom/media/omx/MediaCodecProxy.cpp @@ +115,5 @@ > } > return false; > } > > +RefPtr<MediaCodecProxy::CodecPromise> remove trailing space. ::: dom/media/omx/MediaCodecReader.h @@ +172,5 @@ > MozPromiseRequestHolder<MediaResourcePromise> mMediaResourceRequest; > MozPromiseHolder<MediaResourcePromise> mMediaResourcePromise; > > + MozPromiseRequestHolder<android::MediaCodecProxy::CodecPromise> mVideoCodecRequest; > + Now we have mMediaResourceRequest, mMediaResourcePromise, and mVideoCodecRequest to handle the request for video codec use. It looks a little complicated and there should be a simpler way to do it. However, we are going to remove MediaCodecReader in bug 1198576, so it would be no need to simplify this codes.
Attachment #8684735 -
Flags: review?(bwu) → review+
Assignee | ||
Comment 6•8 years ago
|
||
(In reply to Blake Wu [:bwu][:blakewu] from comment #5) > > Now we have mMediaResourceRequest, mMediaResourcePromise, and > mVideoCodecRequest to handle the request for video codec use. It looks a > little complicated and there should be a simpler way to do it. However, we > are going to remove MediaCodecReader in bug 1198576, so it would be no need > to simplify this codes. Thanks for the review. I almost did the the above suggestion, but stopped to do it because of the above reason.
Assignee | ||
Comment 7•8 years ago
|
||
Apply the comment. Carry "r=bwu".
Attachment #8684735 -
Attachment is obsolete: true
Attachment #8685269 -
Flags: review+
Assignee | ||
Comment 8•8 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=6239c9a44c6f
Comment 10•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/c0ccc4c5af5e
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox45:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla45
You need to log in
before you can comment on or make changes to this bug.
Description
•