Closed
Bug 1057906
Opened 11 years ago
Closed 10 years ago
Refactor the HQ scaling code to use RawAccessFrameRef and do some cleanup
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: seth, Assigned: seth)
References
Details
Attachments
(1 file)
10.19 KB,
patch
|
tnikkel
:
review+
|
Details | Diff | Splinter Review |
Like the other followups of bug 1057894, this bug refactors existing code to use one of the new RAII smart handles - in this case RawAccessFrameRef - and cleans up the surrounding code while we're at it.
In this particular case, the target is the HQ scaling code, which can benefit from RawAccessFrameRef. Much refactoring and cleaning ensues.
Assignee | ||
Comment 1•11 years ago
|
||
Here's the patch. Things are a little saner afterwards.
One particular note: the existing code was quite worried about not calling accessors on imgFrame and the like off-main-thread. However, I don't think there's any good reason for this. It's possible things were different in the past, but calling things like GetImageData() off-main-thread while we hold a RawAccessFrameRef should be perfectly safe. I've modified the code accordingly.
Attachment #8478046 -
Flags: review?(tnikkel)
Updated•10 years ago
|
Attachment #8478046 -
Flags: review?(tnikkel) → review+
Assignee | ||
Comment 2•10 years ago
|
||
Thanks for the review!
Pushed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/05cc7431a887
Comment 3•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
•