Closed
Bug 978274
Opened 11 years ago
Closed 11 years ago
gfxPrefs initialization, internal cleanup and preparation for moving gfx.color_management.* to it
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: milan, Assigned: milan)
References
Details
Attachments
(1 file)
13.24 KB,
patch
|
BenWa
:
review+
|
Details | Diff | Splinter Review |
1. With automated tests, gfxPlatform doesn't get called early enough, so we need another place to initialize gfxPrefs.
2. Rename One -> GetSingleton, Destroy to DestroySingleton, Exists to SingletonExists.
3. Remove gfxPlatform.MigratePrefs, which deals with some obsolete gfx.color_management preferences.
Assignee | ||
Comment 1•11 years ago
|
||
Some of these changes were reviewed or suggested in bug 910860; that one is being delayed for dependencies, but some of those changes aren't really related to that bug so may as well live separately.
https://tbpl.mozilla.org/?tree=Try&rev=e4ab23074ea7
Attachment #8384840 -
Flags: review?(bgirard)
Comment 2•11 years ago
|
||
Comment on attachment 8384840 [details] [diff] [review]
Initialize gfxPrefs earlier, rename some methods, delete MigratePrefs from gfxPlatform
Review of attachment 8384840 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/tests/gtest/TestGfxPrefs.cpp
@@ +23,5 @@
> + gfxPrefs::GetSingleton();
> + ASSERT_TRUE(gfxPrefs::SingletonExists());
> +
> + // Live boolean, default false
> + ASSERT_FALSE(gfxPrefs::CanvasAzureAccelerated());
NIT: It's going to be a bit annoying to have these test regress when there's preference are changed.
Attachment #8384840 -
Flags: review?(bgirard) → review+
Assignee | ||
Comment 3•11 years ago
|
||
(In reply to Benoit Girard (:BenWa) from comment #2)
> Comment on attachment 8384840 [details] [diff] [review]
> Initialize gfxPrefs earlier, rename some methods, delete MigratePrefs from
> gfxPlatform
>
> Review of attachment 8384840 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: gfx/tests/gtest/TestGfxPrefs.cpp
> @@ +23,5 @@
> > + gfxPrefs::GetSingleton();
> > + ASSERT_TRUE(gfxPrefs::SingletonExists());
> > +
> > + // Live boolean, default false
> > + ASSERT_FALSE(gfxPrefs::CanvasAzureAccelerated());
>
> NIT: It's going to be a bit annoying to have these test regress when there's
> preference are changed.
Agreed, but it actually found a bug (I had the macro setting a different value than the actual preference), so it does have value. I will add a comment in the test pointing out that if the default for the preference changes, we should just modify the test.
Assignee | ||
Comment 4•11 years ago
|
||
Comment 5•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
You need to log in
before you can comment on or make changes to this bug.
Description
•