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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bholley, Assigned: bholley)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 3 obsolete files)

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.
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?
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+
thanks vlad. marking as checkin-needed.
Keywords: checkin-needed
crap - not checkin-needed!
Keywords: checkin-needed
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
reflagging checkin-needed
Keywords: checkin-needed
Keywords: checkin-needed
guh - bitrot. fixing...
I thought there was more, but I guess hg import works better than patch
Attachment #333192 - Attachment is obsolete: true
Keywords: checkin-needed
pushed in dfc43ed110cb
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
A comment in the source code listing the meanings of mode 0,1, and 2 would have been helpful.
(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.
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)
Looks fine, thanks.
pushed in 0916bd66cf67
Product: Core → Core Graveyard
Component: GFX → GFX: Color Management
Product: Core Graveyard → Core
QA Contact: general → color-management
Blocks: 621474
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: