Closed
Bug 1377252
Opened 8 years ago
Closed 8 years ago
RasterImage::IsUnlocked isn't correct
Categories
(Core :: Graphics: ImageLib, enhancement)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
mozilla56
| Tracking | Status | |
|---|---|---|
| firefox56 | --- | fixed |
People
(Reporter: tnikkel, Assigned: tnikkel)
Details
Attachments
(1 file)
|
3.89 KB,
patch
|
aosmond
:
review+
|
Details | Diff | Splinter Review |
We currently use RasterImage::IsUnlocked for two different purposes:
1) to determine that we can't throw away the decoded image in WillDrawOpaqueNow
2) to determine when to send the unlockeddraw notification
For 1) what we want to check is mLockCount == 0.
For 2) what we actually want to check is mAnimationConsumers == 0. This is because images that are in the visible list in background tabs will have mLockCount == 0 but mAnimationConsumers > 0 and if we are drawing an image we need to make sure it will be animated (mAnimationConsumers == 0 stops the animation). This is what VectorImage already does.
| Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8882327 -
Flags: review?(aosmond)
Comment 2•8 years ago
|
||
Comment on attachment 8882327 [details] [diff] [review]
isunlocked
Review of attachment 8882327 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM.
Attachment #8882327 -
Flags: review?(aosmond) → review+
Pushed by tnikkel@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/bb6cf8e70673
Stop using RasterImage::IsUnlocked because it doesn't do what we want. r=aosmond
Comment 4•8 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•