Implement Android shared memory data fetcher for Device Motion.
This CL implements the shared memory data fetcher for devices running on Android. The data fetchers acquires data from sensors (e.g. accelerometer, gyroscope) and puts it into a shared memory buffer. Because the sensor data is push-based on Android there is no need for an extra polling thread to fetch the data at regular intervals.
This CL features:
- interface for shared memory data fetchers for Device Motion.
- implementation of the Android shared memory data fetcher.
- unit tests for the Android shared memory data fetcher.
- implementation of the empty data fetcher for other platforms.
- modification of the existing Android data fetcher to be a singleton, such that it is compatible with the current Device Orientation implementation.
BUG=135804
Review URL: https://chromiumcodereview.appspot.com/18572014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211539 0039d316-1c4b-4281-b951-d872f2087c98
14 files changed