Closed
Bug 1185388
Opened 9 years ago
Closed 9 years ago
[EME] Limit cores used by WMF in gmp-clearkey
Categories
(Core :: Audio/Video, defect, P2)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: cpearce, Assigned: eflores)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
4.82 KB,
patch
|
cpearce
:
review+
|
Details | Diff | Splinter Review |
As in bug 1172841, we should limit the number of cores that WMF uses to decode in gmp-clearkey, so that Firefox's rendering doesn't get starved on low end hardware or at high framerates.
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(edwin)
QA Contact: edwin
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → edwin
QA Contact: edwin
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8642210 -
Flags: review?(cpearce)
Reporter | ||
Comment 3•9 years ago
|
||
Comment on attachment 8642210 [details] [diff] [review] 1185388.patch Review of attachment 8642210 [details] [diff] [review]: ----------------------------------------------------------------- ::: media/gmp-clearkey/0.1/WMFUtils.cpp @@ +257,5 @@ > > +static int32_t > +ComputeNumThreads() > +{ > + SYSTEM_INFO sysInfo; Use the aCoreCount argument passed to VideoDecoder::InitDecode instead of Win32 APIs here so there's no risk of the sandbox breaking this and so that Firefox can control this.
Attachment #8642210 -
Flags: review?(cpearce) → review-
Assignee | ||
Comment 4•9 years ago
|
||
Attachment #8642632 -
Flags: review?(cpearce)
Assignee | ||
Updated•9 years ago
|
Attachment #8642210 -
Attachment is obsolete: true
Reporter | ||
Comment 5•9 years ago
|
||
Comment on attachment 8642632 [details] [diff] [review] 1185388.patch Review of attachment 8642632 [details] [diff] [review]: ----------------------------------------------------------------- ::: media/gmp-clearkey/0.1/WMFUtils.cpp @@ +256,5 @@ > > +int32_t > +GetNumThreads(int32_t aCoreCount) > +{ > + return aCoreCount > 4 ? -1 : (std::max)(aCoreCount - 1, 1); Nit: Do you need the "()" around (std::max)? i.e. can this be: std::max(aCoreCount - 1, 1); ?
Attachment #8642632 -
Flags: review?(cpearce) → review+
Comment 7•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/66a7b65bdff9
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•