Closed
Bug 1214997
Opened 9 years ago
Closed 9 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•9 years ago
|
Priority: -- → P2
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → sotaro.ikeda.g
Assignee | ||
Updated•9 years ago
|
Summary: Return MozPromise by MediaSystemResourceClient::Acquire() → Use MozPromise in MediaCodecProxy and OMXCodecProxy
Assignee | ||
Comment 1•9 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•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Attachment #8684735 -
Flags: review?(bwu)
Comment 5•9 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•9 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•9 years ago
|
||
Apply the comment. Carry "r=bwu".
Attachment #8684735 -
Attachment is obsolete: true
Attachment #8685269 -
Flags: review+
Assignee | ||
Comment 8•9 years ago
|
||
Comment 10•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 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
•