Closed
Bug 1070426
Opened 10 years ago
Closed 10 years ago
Defer imgFrame::SetHasNoAlpha() until we unlock the imgFrame
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: seth, Assigned: seth)
References
Details
Attachments
(1 file)
3.60 KB,
patch
|
tnikkel
:
review+
|
Details | Diff | Splinter Review |
Just like in bug 1069652, I'm trying to address issues that arise from imgFrame objects being shared by multiple RawAccessRefs. It seems wise to defer imgFrame::SetHasAlpha() until we unlock, just as we did with imgFrame::Optimize(), since it also replaces mImageSurface.
Assignee | ||
Updated•10 years ago
|
Summary: Defer imgFrame::SetHasAlpha() until we unlock the imgFrame → Defer imgFrame::SetHasNoAlpha() until we unlock the imgFrame
Comment 2•10 years ago
|
||
Comment on attachment 8492490 [details] [diff] [review]
Defer imgFrame::SetHasNoAlpha() until we unlock
Seth asked me to steal this on irc.
Attachment #8492490 -
Flags: review?(mwu) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Thanks Timothy! Pushed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/2b22cf1d48af
Comment 4•10 years ago
|
||
FWIW, I didn't get to this because SetHasNoAlpha() is a fairly sketchy call and I was thinking about the right way to go about this. In most cases, I think the decoder should know whether alpha is necessary before outputting decoded data, so this sort of information should be passed on and handled while initializing an imgFrame. Dealing with it after decoding is somewhat backwards. I'm planning to work on decoders later though, so I'll try to kill SetHasNoAlpha later.
Assignee | ||
Comment 5•10 years ago
|
||
(In reply to Michael Wu [:mwu] from comment #4)
> In most cases, I
> think the decoder should know whether alpha is necessary before outputting
> decoded data, so this sort of information should be passed on and handled
> while initializing an imgFrame.
Yes, that would definitely be preferable; the decoder should provide that information to RasterImage::EnsureFrame.
Comment 6•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in
before you can comment on or make changes to this bug.
Description
•