Bug 876208: only evaluate the preference for gfx.direct2d.* once, and require restart before any further changes to the preferences take effect in the code, r=bas