Closed
Bug 1141819
Opened 10 years ago
Closed 10 years ago
Don't implicitly dispatch a runnable to the main thread in RasterImage::StartDecoding
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: seth, Assigned: seth)
References
Details
Attachments
(1 file)
986 bytes,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
After bug 1139225, there's no longer a reason for RasterImage::StartDecoding to work implicitly off-main-thread. We should remove the implicit runnable dispatch code, so we don't encourage people to call this method off-main-thread.
Note that if anyone does do so, we'll know, because there's an assertion in RasterImage::RequestDecodeForSize (which is used to implement RasterImage::StartDecoding) which will fire if it runs off-main-thread. So we don't need a new assertion here.
Assignee | ||
Comment 1•10 years ago
|
||
Here's the patch.
Attachment #8575634 -
Flags: review?(amarchesini)
Assignee | ||
Comment 2•10 years ago
|
||
Whoops, this got mixed in with a large stack of commits I just pushed to inbound by mistake. I thought this had already been r+'d.
bb86ca5e5552 Seth Fowler — Bug 1141819 - Don't implicitly dispatch a runnable to the main thread in RasterImage::StartDecoding. r=baku
I don't want to back out because doing so will require another round of testing.
Andrea, if you have time, could you review this soon? I'll push a followup with any changes you request. If you don't have time, please let me know and I'll ask someone else to review.
Flags: needinfo?(amarchesini)
Comment 3•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Comment 4•10 years ago
|
||
Comment on attachment 8575634 [details] [diff] [review]
Don't implicitly dispatch a runnable to the main thread in RasterImage::StartDecoding
Review of attachment 8575634 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for the explanation by email.
Attachment #8575634 -
Flags: review?(amarchesini) → review+
Updated•10 years ago
|
Flags: needinfo?(amarchesini)
You need to log in
before you can comment on or make changes to this bug.
Description
•