зеркало из https://github.com/mozilla/gecko-dev.git
1c78f9203b
Thus far gtests have only tested fairly simple images which already render the same on all platforms (e.g. solid green 100x100 square). If we want to test more complicated images consistently across platforms, we need to ensure the color adjustments we perform are also consistent. Using the pref gfx.color_management.force_srgb to force an sRGB CMS profile makes us consistent with the reftests and mochitests. However an additional quirk of the gtests is that we own the main thread and we never check our event queue to see if anything is pending. Depending on the initialization order of our graphics dependencies, it may or may not have created pending runnables to process the pref change. As such, we need to change the pref, initialize imagelib/gfx and then check for, and if present execute, any necessary runnables. Only then can we be sure that our desired CMS profile is applied. |
||
---|---|---|
.. | ||
browser | ||
crashtests | ||
gtest | ||
mochitest | ||
reftest | ||
unit |