Closed
Bug 1313878
Opened 9 years ago
Closed 9 years ago
Use lambda to create runnable for dispatching to main thread in GMPCDMCallbackProxy.cpp
Categories
(Core :: Audio/Video: GMP, defect, P3)
Core
Audio/Video: GMP
Tracking
()
RESOLVED
FIXED
mozilla52
| Tracking | Status | |
|---|---|---|
| firefox52 | --- | fixed |
People
(Reporter: JamesCheng, Assigned: JamesCheng)
Details
Attachments
(1 file)
Use lambda to reduce lots of class declarations.
Like:
RefPtr<CDMProxy> proxy = mProxy;
NS_DispatchToMainThread(
NS_NewRunnableFunction([p = Move(proxy),
sid = NS_ConvertUTF8toUTF16(aSessionId),
aException,
aSystemCode,
msg = NS_ConvertUTF8toUTF16(aMessage)] ()
{
p->OnSessionError(sid,
aException,
aSystemCode,
msg);
})
);
But currently gecko did not fully support c++14, might cause
error: lambda capture initializers only available with -std=c++1y or -std=gnu++1y [-Werror]
So use `copy` to the capture list.
| Comment hidden (mozreview-request) |
| Comment hidden (mozreview-request) |
| Assignee | ||
Updated•9 years ago
|
Attachment #8805808 -
Flags: review?(cpearce)
| Comment hidden (typo) |
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 5•9 years ago
|
||
Attach treeherder result
https://treeherder.mozilla.org/#/jobs?repo=try&revision=1d8f9c3e1f4c28890b58d92b9a82433a1299814b
| Comment hidden (mozreview-request) |
Updated•9 years ago
|
Rank: 15
Priority: -- → P1
Updated•9 years ago
|
Priority: P1 → P3
Comment 7•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8805808 [details]
Bug 1313878 - Use lambda to create runnable for dispatching to main thread in GMPCDMCallbackProxy.cpp
https://reviewboard.mozilla.org/r/89452/#review88758
Attachment #8805808 -
Flags: review?(cpearce) → review+
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/909d5ee27ca7
Use lambda to create runnable for dispatching to main thread in GMPCDMCallbackProxy.cpp r=cpearce
Keywords: checkin-needed
Comment 10•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•