Closed
Bug 865518
Opened 11 years ago
Closed 11 years ago
Add support for GetImageContainer to ClippedImage
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: seth, Assigned: seth)
References
Details
Attachments
(1 file, 2 obsolete files)
For performance reasons it might be worthwhile to support ClippedImage::GetImageContainer. However, there are some stumbling blocks: - Invalidating the ImageContainer is tricky. - If we use the cached image produced internally by ClippedImage::GetFrame to populate the ImageContainer, we only get an ImageContainer when ClippedImage has to tile or otherwise produce a temporary surface for some reason. It's not clear that this is what we want, but if we produce an ImageContainer all the time, it seems that we may as well also produce a cached surface all the time, and part of the point of ClippedImage was to avoid creating an extra surface when it isn't needed! For these reasons I've avoided implementing this so far. I'm not entirely sure that this bug shouldn't end up being WONTFIX. It's also possible that these issues point to fundamental problems with the GetImageContainer API as it currently exists.
Assignee | ||
Comment 1•11 years ago
|
||
Here's a work-in-progress version of the patch. We'd need to address the concerns above to turn this into something worth using.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → seth
Assignee | ||
Comment 2•11 years ago
|
||
Rebase.
Assignee | ||
Updated•11 years ago
|
Attachment #741615 -
Attachment is obsolete: true
Assignee | ||
Comment 3•11 years ago
|
||
Recording my final local version of this patch here.
Assignee | ||
Updated•11 years ago
|
Attachment #742071 -
Attachment is obsolete: true
Assignee | ||
Comment 4•11 years ago
|
||
After experimenting with this in bug 859377 I did not see significant performance improvements. I don't think this is worth the added complexity. WONTFIX'ing for now; things may change in the future.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•11 years ago
|
Resolution: FIXED → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•