Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Issue 22926029: Mac: implement orientation/motion shared memory data fetcher. (Closed)

Created:
7 years, 4 months ago by timvolodine
Modified:
7 years, 3 months ago
Reviewers:
bulach, Nico, piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Michael van Ouwerkerk
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Mac: implement orientation/motion shared memory data fetcher. Add Device Motion/Orientation data fetcher for the mac platform. The fetcher uses the mac's sudden motion sensor to obtain acceleration and orientation information. It uses a polling thread to update shared memory at regular intervals. This patch also contains some minor changes to the base polling thread implementation to make the fetcher thread safe. also fixes a leak in a test, see crbug.com/280129. BUG=261165, 280129 NOTRY=true R=bulach@chromium.org, piman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219861

Patch Set 1 #

Total comments: 9

Patch Set 2 : added .gyp definitions #

Patch Set 3 : fixed comments, modified gyp #

Patch Set 4 : fixes to head memory leak tests #

Total comments: 2

Patch Set 5 : FakeNonPollingDataFetcher on stack #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -66 lines) Patch
M content/browser/device_orientation/data_fetcher_shared_memory.h View 2 chunks +16 lines, -0 lines 0 comments Download
M content/browser/device_orientation/data_fetcher_shared_memory_base.h View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/device_orientation/data_fetcher_shared_memory_base.cc View 1 2 3 6 chunks +42 lines, -28 lines 0 comments Download
M content/browser/device_orientation/data_fetcher_shared_memory_base_unittest.cc View 1 2 3 4 2 chunks +33 lines, -35 lines 0 comments Download
A content/browser/device_orientation/data_fetcher_shared_memory_mac.cc View 1 2 1 chunk +163 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
timvolodine
7 years, 4 months ago (2013-08-23 14:25:55 UTC) #1
bulach
lgtm once the bots are happy, thanks tim! some suggestions below: https://codereview.chromium.org/22926029/diff/1/content/browser/device_orientation/data_fetcher_shared_memory.h File content/browser/device_orientation/data_fetcher_shared_memory.h (right): ...
7 years, 4 months ago (2013-08-23 16:03:34 UTC) #2
timvolodine
https://codereview.chromium.org/22926029/diff/1/content/browser/device_orientation/data_fetcher_shared_memory.h File content/browser/device_orientation/data_fetcher_shared_memory.h (right): https://codereview.chromium.org/22926029/diff/1/content/browser/device_orientation/data_fetcher_shared_memory.h#newcode14 content/browser/device_orientation/data_fetcher_shared_memory.h:14: class SuddenMotionSensor; On 2013/08/23 16:03:34, bulach wrote: > scoped_ptr ...
7 years, 4 months ago (2013-08-23 16:34:55 UTC) #3
bulach
https://codereview.chromium.org/22926029/diff/1/content/browser/device_orientation/data_fetcher_shared_memory.h File content/browser/device_orientation/data_fetcher_shared_memory.h (right): https://codereview.chromium.org/22926029/diff/1/content/browser/device_orientation/data_fetcher_shared_memory.h#newcode14 content/browser/device_orientation/data_fetcher_shared_memory.h:14: class SuddenMotionSensor; On 2013/08/23 16:34:55, timvolodine wrote: > On ...
7 years, 4 months ago (2013-08-23 16:37:36 UTC) #4
timvolodine
On 2013/08/23 16:37:36, bulach wrote: > https://codereview.chromium.org/22926029/diff/1/content/browser/device_orientation/data_fetcher_shared_memory.h > File content/browser/device_orientation/data_fetcher_shared_memory.h (right): > > https://codereview.chromium.org/22926029/diff/1/content/browser/device_orientation/data_fetcher_shared_memory.h#newcode14 > ...
7 years, 4 months ago (2013-08-23 17:03:55 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timvolodine@chromium.org/22926029/19001
7 years, 3 months ago (2013-08-27 11:15:57 UTC) #6
timvolodine
+ piman@ for content/content_browser.gypi
7 years, 3 months ago (2013-08-27 12:20:15 UTC) #7
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=22550
7 years, 3 months ago (2013-08-27 13:20:32 UTC) #8
piman
lgtm
7 years, 3 months ago (2013-08-27 17:24:22 UTC) #9
Nico
Say "also fixes a leak in a test" to the cl description. https://codereview.chromium.org/22926029/diff/33001/content/browser/device_orientation/data_fetcher_shared_memory_base_unittest.cc File content/browser/device_orientation/data_fetcher_shared_memory_base_unittest.cc ...
7 years, 3 months ago (2013-08-27 18:36:34 UTC) #10
Nico
On 2013/08/27 18:36:34, Nico wrote: > Say "also fixes a leak in a test" to ...
7 years, 3 months ago (2013-08-27 18:44:10 UTC) #11
timvolodine
I tried talking to it -- didn't really help ;) https://codereview.chromium.org/22926029/diff/33001/content/browser/device_orientation/data_fetcher_shared_memory_base_unittest.cc File content/browser/device_orientation/data_fetcher_shared_memory_base_unittest.cc (right): https://codereview.chromium.org/22926029/diff/33001/content/browser/device_orientation/data_fetcher_shared_memory_base_unittest.cc#newcode184 ...
7 years, 3 months ago (2013-08-27 18:54:29 UTC) #12
Nico
On 2013/08/27 18:54:29, timvolodine wrote: > I tried talking to it -- didn't really help ...
7 years, 3 months ago (2013-08-27 18:57:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/timvolodine@chromium.org/22926029/43001
7 years, 3 months ago (2013-08-27 19:48:34 UTC) #14
Nico
7 years, 3 months ago (2013-08-27 23:56:06 UTC) #15
Message was sent while issue was closed.
Committed patchset #5 manually as r219861 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698