Closed
Bug 1284809
Opened 4 years ago
Closed 3 years ago
Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use
Categories
(Core :: Audio/Video: GMP, defect, P3)
Core
Audio/Video: GMP
P3
Tracking
()
RESOLVED
FIXED
mozilla50
Tracking | Status | |
---|---|---|
firefox50 | --- | fixed |
People
(Reporter: JamesCheng, Assigned: JamesCheng)
References
Details
Attachments
(1 file)
In current code base, CDMCallbackProxy(private cstr) is only allowed to be use by CDMProxy(CDMCallbackProxy's friend). I think it is better to put CDMCallbackProxy into CDMProxy protected field. The advantage is 1. Get rid of |friend modifier|. 2. It only allows derived class(Bug 1284192 intended to do) to use this class.
Assignee | ||
Comment 1•4 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/62632/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/62632/
Attachment #8768359 -
Flags: review?(jwwang)
Comment 2•4 years ago
|
||
I assume CDMCallbackProxy is strongly coupled with GMP because it inherits GMPDecryptorProxyCallback. The chance for it to be reusable with other CDMProxy subclass should be low. I would suggest just rename CDMCallbackProxy to GMPCDMCallbackProxy which will be used by GMPCDMProxy only.
Comment 3•4 years ago
|
||
Comment on attachment 8768359 [details] [mq]: Bug 1284809 - Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use. https://reviewboard.mozilla.org/r/62632/#review59622
Attachment #8768359 -
Flags: review?(jwwang)
Assignee | ||
Updated•4 years ago
|
Summary: Move CDMCallbackProxy to be a innerclass of CDMProxy → Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use
Assignee | ||
Comment 4•4 years ago
|
||
Comment on attachment 8768359 [details] [mq]: Bug 1284809 - Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/62632/diff/1-2/
Attachment #8768359 -
Attachment description: Bug 1284809 - Move CDMCallbackProxy to be a innerclass of CDMProxy. → Bug-1284809 Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use.
Attachment #8768359 -
Flags: review?(jwwang)
Comment 5•4 years ago
|
||
Comment on attachment 8768359 [details] [mq]: Bug 1284809 - Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use. https://reviewboard.mozilla.org/r/62632/#review60228 1. Use "hg mv" unless you want to keep CDMCallbackProxy.cpp 2. GMPCDMCallbackProxy.cpp should be put under dom/media/gmp
Attachment #8768359 -
Flags: review?(jwwang) → review-
Assignee | ||
Comment 6•4 years ago
|
||
Comment on attachment 8768359 [details] [mq]: Bug 1284809 - Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use. Review request updated; see interdiff: https://reviewboard.mozilla.org/r/62632/diff/2-3/
Attachment #8768359 -
Attachment description: Bug-1284809 Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use. → [mq]: Bug 1284809 - Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use.
Attachment #8768359 -
Flags: review- → review?(jwwang)
Updated•4 years ago
|
Attachment #8768359 -
Flags: review?(jwwang) → review+
Comment 7•4 years ago
|
||
Comment on attachment 8768359 [details] [mq]: Bug 1284809 - Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use. https://reviewboard.mozilla.org/r/62632/#review60242 Looks good to me. But the bug title is different from the description of comment 0. Please explain the purpose of this bug again.
Comment 8•4 years ago
|
||
Comment on attachment 8768359 [details] [mq]: Bug 1284809 - Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use. GMP changes should go through Chris. Hi Chris, Do you have concerns about incoming changes to CDMProxy (bug 1284192) and related files?
Attachment #8768359 -
Flags: review?(cpearce)
Assignee | ||
Comment 9•4 years ago
|
||
For bug 1284192, we are planning to make cdmproxy to be a base class. This bug is trying to make CDMCallbackproxy to be a gmp-used only class, so I moved it to gmp folder and renamed.
Comment 10•4 years ago
|
||
(In reply to JW Wang [:jwwang] from comment #8) > Comment on attachment 8768359 [details] > [mq]: Bug 1284809 - Rename CDMCallbackProxy to GMPCDMCallbackProxy to make > it GMP specific use. > > GMP changes should go through Chris. > > Hi Chris, > Do you have concerns about incoming changes to CDMProxy (bug 1284192) and > related files? Should add, the reason we want this change is to build another FennecCDMProxy which will encapsulate the code logic & function calls related to MediaDrm/MediaCrypto. By doing so, we can also make the session-related IPC calls obscure once we have a separated process(service) to decode video.
Assignee | ||
Comment 11•4 years ago
|
||
(In reply to Kilik Kuo [:kikuo] from comment #10) > (In reply to JW Wang [:jwwang] from comment #8) > > Comment on attachment 8768359 [details] > > [mq]: Bug 1284809 - Rename CDMCallbackProxy to GMPCDMCallbackProxy to make > > it GMP specific use. > > > > GMP changes should go through Chris. > > > > Hi Chris, > > Do you have concerns about incoming changes to CDMProxy (bug 1284192) and > > related files? > > Should add, the reason we want this change is to build another > FennecCDMProxy which will encapsulate the code logic & function calls > related to MediaDrm/MediaCrypto. By doing so, we can also make the > session-related IPC calls obscure once we have a separated process(service) > to decode video. Yes, Bug 1284434 is intended to do this.
Comment 12•3 years ago
|
||
Comment on attachment 8768359 [details] [mq]: Bug 1284809 - Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use. https://reviewboard.mozilla.org/r/62632/#review61112
Attachment #8768359 -
Flags: review?(cpearce) → review+
Assignee | ||
Comment 13•3 years ago
|
||
Thanks for your reviewing :) attach treeherder result https://treeherder.mozilla.org/#/jobs?repo=try&revision=7d157220010d
Assignee | ||
Updated•3 years ago
|
Keywords: checkin-needed
Comment 14•3 years ago
|
||
Pushed by cbook@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/0d3d7cad6c85 Rename CDMCallbackProxy to GMPCDMCallbackProxy to make it GMP specific use. r=jwwang
Keywords: checkin-needed
Comment 15•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/0d3d7cad6c85
Status: NEW → RESOLVED
Closed: 3 years ago
status-firefox50:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla50
You need to log in
before you can comment on or make changes to this bug.
Description
•