Closed
Bug 449681
Opened 16 years ago
Closed 16 years ago
switch color_management pref from off/on bool to off/on/taggedonly int
Categories
(Core :: Graphics: Color Management, defect)
Core
Graphics: Color Management
Tracking
()
RESOLVED
FIXED
People
(Reporter: bholley, Assigned: bholley)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 3 obsolete files)
17.19 KB,
patch
|
Details | Diff | Splinter Review | |
941 bytes,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
We want the option to color correct tagged images only. If we switch the current bool to an int and do 0=off, 1=on, 2=taggedonly, we should maintain backward pref compatibility.
Marking as blocking bug 390697, even though work on the UI stuff isn't all that tightly coupled with this. I'll get it done soon.
Assignee | ||
Comment 1•16 years ago
|
||
patch added - flagging vlad for review
Attachment #333035 -
Flags: review?(vladimir)
Comment on attachment 333035 [details] [diff] [review]
patch to switch to a 3-mode color pref
Man, I wonder who started that silly "AllCount" convention :)
Can you call the enums more descriptive names, and put in comments what each one days?
Maybe eCMSMode_All, eCMSMode_TaggedImagesOnly? Looks great otherwise.
Attachment #333035 -
Flags: review?(vladimir) → review+
Comment on attachment 333035 [details] [diff] [review]
patch to switch to a 3-mode color pref
can you just double check with.. hrm, any of gavin/dolske/deitrich to make sure that switching that pref from a boolean to an int won't cause problems if the 0/1 values match up?
Assignee | ||
Comment 4•16 years ago
|
||
dolske was pretty sure the auto-migration wouldn't happen. Given that color_management.enabled is a pretty crappy name for an int pref, he suggested using a new pref name and adding code to migrate and then delete the old pref. Added that here.
Flagging vlad for review
Attachment #333035 -
Attachment is obsolete: true
Attachment #333184 -
Flags: review?(vladimir)
Comment on attachment 333184 [details] [diff] [review]
updated patch with new enum names, new pref, and migration code
Looks good
Attachment #333184 -
Flags: review?(vladimir) → review+
Assignee | ||
Comment 8•16 years ago
|
||
oops - I had a tiny change (an added semicolon that fixed compile bustage) in my local tree but I hadn't qrefreshed it into the patch. This patch should be checked in, not the above. Aside from that small fix it's the same.
Attachment #333184 -
Attachment is obsolete: true
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 10•16 years ago
|
||
guh - bitrot. fixing...
Assignee | ||
Comment 11•16 years ago
|
||
I thought there was more, but I guess hg import works better than patch
Attachment #333192 -
Attachment is obsolete: true
Assignee | ||
Updated•16 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 12•16 years ago
|
||
pushed in dfc43ed110cb
Comment 13•16 years ago
|
||
A comment in the source code listing the meanings of mode 0,1, and 2 would have been helpful.
Comment 14•16 years ago
|
||
(In reply to comment #13)
> A comment in the source code listing the meanings of mode 0,1, and 2 would have
> been helpful.
It would be sufficient to replace
pref("gfx.color_management.mode", 0);
with
pref("gfx.color_management.mode", eCMSMode_Off);
which would lead a person to the definitions of eCMSMode_* which are commented.
Assignee | ||
Comment 15•16 years ago
|
||
Glenn - I don't think we can use the enum in all.js, since it's a javascript file.
Attached a patch to comment the modes in all.js instead. Flagging vlad for review.
Attachment #335396 -
Flags: review?(vladimir)
Comment 16•16 years ago
|
||
Looks fine, thanks.
Attachment #335396 -
Flags: review?(vladimir) → review+
Assignee | ||
Comment 17•16 years ago
|
||
pushed in 0916bd66cf67
Updated•16 years ago
|
Product: Core → Core Graveyard
Assignee | ||
Updated•16 years ago
|
Component: GFX → GFX: Color Management
Product: Core Graveyard → Core
QA Contact: general → color-management
You need to log in
before you can comment on or make changes to this bug.
Description
•