Match the sensor event firing frequency and the fetch frequency in the browser.
commitd569a3eac706ccbc18a52e3dc8451d922e30f849
authortimvolodine@chromium.org <timvolodine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 25 Oct 2013 00:41:04 +0000 (25 00:41 +0000)
committertimvolodine@chromium.org <timvolodine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 25 Oct 2013 00:41:04 +0000 (25 00:41 +0000)
tree85ae91f5d2420dbbf1b7b781e96ad7bd1057e1e8
parent39530ebc0a9914359de8923999f72c540d357c67
Match the sensor event firing frequency and the fetch frequency in the browser.

Since the default hardware sensor fetch frequency is currently
max 20Hz, this patch makes the renderer-side sensor event pump
poll frequency match the hardware fetch frequency to avoid
confusion in Blink. That way the reported interval property of
the Device Motion events will match the actual interval at which
the events are fired into Blink.

BUG=261165
TEST=http://jsbin.com/device-inertial-sensor-diagnostics/latest (manual)
TBR=mvanouwerkerk@chromium.org

Review URL: https://codereview.chromium.org/32823007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@230879 0039d316-1c4b-4281-b951-d872f2087c98
content/renderer/device_orientation/device_sensor_event_pump.cc