Closed
Bug 1097405
Opened 10 years ago
Closed 10 years ago
Clean up imgStatusTracker's Difference APIs
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: seth, Assigned: seth)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
8.98 KB,
patch
|
tnikkel
:
review+
|
Details | Diff | Splinter Review |
Right now code that wants to use imgStatusTracker to send notifications has to correctly call imgStatusTracker::Difference (in some cases at least), imgStatusTracker::ApplyDifference, and finally imgStatusTracker::SyncNotifyDifference. We should simplify this API. All that's really required is:
- Difference. Only RasterImage::FinishedSomeDecoding needs this, to support the loop that lets us avoid recursive notifications. It should never produce incorrect results to *not* all Difference before SyncNotifyDifference, as it can now.
- SyncNotifyDifference. Internally, this method should call both Difference and ApplyDifference (or really, just inline ApplyDifference, since it's trivial now).
Since we never need to call ApplyDifference independently from SyncNotifyDifference, we'll remove that method from the API totally.
Making this change will let us send notifications in two or three lines of simple, easy-to-understand code. Later refactorings will get this down to one line.
Assignee | ||
Comment 2•10 years ago
|
||
Try job here:
https://tbpl.mozilla.org/?tree=Try&rev=b141081f2926
Updated•10 years ago
|
Attachment #8521076 -
Flags: review?(tnikkel) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Thanks for the review! Pushed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9a3e7bca8051
Comment 4•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in
before you can comment on or make changes to this bug.
Description
•