Bug 1230611 - Make gfxWindowsPlatform::SupportsApzTouchInput use a pref cache to speed it up. r=dvander

This commit is contained in:
Kartikaya Gupta 2015-12-11 11:51:53 -05:00
parent c0dcb560da
commit 3ff0cd97cf
2 changed files with 2 additions and 1 deletions

View File

@ -202,6 +202,7 @@ private:
DECL_GFX_PREF(Once, "dom.vr.cardboard.enabled", VRCardboardEnabled, bool, false);
DECL_GFX_PREF(Once, "dom.vr.add-test-devices", VRAddTestDevices, int32_t, 1);
DECL_GFX_PREF(Live, "dom.w3c_pointer_events.enabled", PointerEventsEnabled, bool, false);
DECL_GFX_PREF(Live, "dom.w3c_touch_events.enabled", TouchEventsEnabled, int32_t, 0);
DECL_GFX_PREF(Live, "general.smoothScroll", SmoothScrollEnabled, bool, true);
DECL_GFX_PREF(Live, "general.smoothScroll.durationToIntervalRatio",

View File

@ -2971,7 +2971,7 @@ gfxWindowsPlatform::CreateHardwareVsyncSource()
bool
gfxWindowsPlatform::SupportsApzTouchInput() const
{
int value = Preferences::GetInt("dom.w3c_touch_events.enabled", 0);
int value = gfxPrefs::TouchEventsEnabled();
return value == 1 || value == 2;
}