Closed
Bug 712959
Opened 13 years ago
Closed 13 years ago
Image decoding prefs aren't reloaded when they change
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
mozilla12
Tracking | Status | |
---|---|---|
firefox12 | --- | fixed |
People
(Reporter: justin.lebar+bug, Assigned: justin.lebar+bug)
References
Details
(Whiteboard: [qa?])
Attachments
(1 file)
10.55 KB,
patch
|
joe
:
review+
|
Details | Diff | Splinter Review |
There's no good reason for this; just an omission in the pref tracking code.
I'll rewrite the code to use the new pref caches. It's much cleaner.
Assignee | ||
Comment 1•13 years ago
|
||
Review: joedrew!
Assignee | ||
Updated•13 years ago
|
Attachment #583825 -
Flags: review?(joe)
Assignee | ||
Comment 2•13 years ago
|
||
> Review: joedrew!
Hm, that didn't work quite as I'd intended. :)
Comment 3•13 years ago
|
||
Comment on attachment 583825 [details] [diff] [review]
Patch v1
Review of attachment 583825 [details] [diff] [review]:
-----------------------------------------------------------------
DiscardTracker.cpp | 14 ++++++-
RasterImage.cpp | 39 ++++++++++++---------
RasterImage.h | 5 --
imgRequest.cpp | 94 ++++++-----------------------------------------------
4 files changed, 45 insertions(+), 107 deletions(-)
Yes, this'll do.
::: image/src/RasterImage.cpp
@@ +86,5 @@
> #endif
>
> +// Tweakable progressive decoding parameters. These are initialized to 0 here
> +// because otherwise, we have to initialize them in a static initializer, which
> +// makes us slower to start up.
All globals are initialized to zero as they're in the .bss section, right?
Attachment #583825 -
Flags: review?(joe) → review+
Assignee | ||
Comment 4•13 years ago
|
||
> All globals are initialized to zero as they're in the .bss section, right?
Yes. And because the whole page comes in as zeroed, this is faster than initializing to something else.
Assignee | ||
Comment 5•13 years ago
|
||
Assignee: nobody → justin.lebar+bug
status-firefox12:
--- → fixed
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in
before you can comment on or make changes to this bug.
Description
•