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

Issue 2745953002: ash: Add basic prediction code to the laser pointer. (Closed)

Created:
3 years, 9 months ago by reveman
Modified:
3 years, 9 months ago
CC:
chromium-reviews, kalyank, sadrul, sammiequon
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Add basic prediction code to the laser pointer. This introduces some basic prediction code to the laser pointer. The code predicts the state at the next presentation time and adds points and adjusts current points to reflect this. Presentation time is next VSYNC time + some device specific constant that represents the time it takes from VSYNC until a change in light can be observed by the user. BUG=696385 TEST=ash_unittests --gtest_filter=LaserPointerControllerTest.LaserPointerPrediction Review-Url: https://codereview.chromium.org/2745953002 Cr-Commit-Position: refs/heads/master@{#457572} Committed: https://chromium.googlesource.com/chromium/src/+/6e29796bd01d666af693908264a2d52909da420f

Patch Set 1 #

Patch Set 2 : improved prediction #

Patch Set 3 : add point prediction error counter and more robust prediction #

Patch Set 4 : fix typo #

Total comments: 18

Patch Set 5 : address feedback #

Patch Set 6 : Use ui::EventTimeForNow everywhere #

Patch Set 7 : missing include and minor cleanup #

Total comments: 10

Patch Set 8 : Add unit test and fix nits #

Total comments: 6

Patch Set 9 : more tests and nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -39 lines) Patch
M ash/common/ash_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/ash_switches.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M ash/laser/laser_pointer_controller.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ash/laser/laser_pointer_controller.cc View 1 2 3 4 5 6 6 chunks +28 lines, -5 lines 0 comments Download
M ash/laser/laser_pointer_controller_test_api.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -4 lines 0 comments Download
M ash/laser/laser_pointer_controller_test_api.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -4 lines 0 comments Download
M ash/laser/laser_pointer_controller_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +39 lines, -0 lines 0 comments Download
M ash/laser/laser_pointer_points.h View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -4 lines 0 comments Download
M ash/laser/laser_pointer_points.cc View 1 2 3 4 5 6 7 8 2 chunks +13 lines, -4 lines 0 comments Download
M ash/laser/laser_pointer_points_test_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/laser/laser_pointer_points_unittest.cc View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M ash/laser/laser_pointer_view.h View 1 3 chunks +8 lines, -2 lines 0 comments Download
M ash/laser/laser_pointer_view.cc View 1 2 3 4 5 6 7 8 12 chunks +138 lines, -10 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
reveman
3 years, 9 months ago (2017-03-12 23:17:31 UTC) #3
Daniele Castagna
Cool! Would it be possible to track the standard deviation of the error between the ...
3 years, 9 months ago (2017-03-13 00:26:08 UTC) #4
reveman
On 2017/03/13 at 00:26:08, dcastagna wrote: > Cool! > Would it be possible to track ...
3 years, 9 months ago (2017-03-14 13:09:05 UTC) #5
Daniele Castagna
https://codereview.chromium.org/2745953002/diff/60001/ash/common/ash_switches.cc File ash/common/ash_switches.cc (right): https://codereview.chromium.org/2745953002/diff/60001/ash/common/ash_switches.cc#newcode68 ash/common/ash_switches.cc:68: // Specifies the estimated time (in milliseconds) from VSYNC ...
3 years, 9 months ago (2017-03-15 19:07:28 UTC) #6
reveman
PTAL https://codereview.chromium.org/2745953002/diff/60001/ash/common/ash_switches.cc File ash/common/ash_switches.cc (right): https://codereview.chromium.org/2745953002/diff/60001/ash/common/ash_switches.cc#newcode68 ash/common/ash_switches.cc:68: // Specifies the estimated time (in milliseconds) from ...
3 years, 9 months ago (2017-03-16 12:57:29 UTC) #7
Daniele Castagna
lgtm
3 years, 9 months ago (2017-03-16 16:12:09 UTC) #8
reveman
+derat for owner review +sammiequon fyi
3 years, 9 months ago (2017-03-16 16:26:01 UTC) #10
Daniel Erat
can you add some simple tests for the prediction code? https://codereview.chromium.org/2745953002/diff/120001/ash/common/ash_switches.cc File ash/common/ash_switches.cc (right): https://codereview.chromium.org/2745953002/diff/120001/ash/common/ash_switches.cc#newcode70 ...
3 years, 9 months ago (2017-03-16 16:50:55 UTC) #13
reveman
On 2017/03/16 at 16:50:55, derat wrote: > can you add some simple tests for the ...
3 years, 9 months ago (2017-03-16 18:00:25 UTC) #17
Daniel Erat
lgtm https://codereview.chromium.org/2745953002/diff/140001/ash/laser/laser_pointer_controller_test_api.h File ash/laser/laser_pointer_controller_test_api.h (right): https://codereview.chromium.org/2745953002/diff/140001/ash/laser/laser_pointer_controller_test_api.h#newcode27 ash/laser/laser_pointer_controller_test_api.h:27: const LaserPointerPoints& predicted_laser_points(); unrelated to your change, but ...
3 years, 9 months ago (2017-03-16 20:18:30 UTC) #22
reveman
https://codereview.chromium.org/2745953002/diff/140001/ash/laser/laser_pointer_controller_test_api.h File ash/laser/laser_pointer_controller_test_api.h (right): https://codereview.chromium.org/2745953002/diff/140001/ash/laser/laser_pointer_controller_test_api.h#newcode27 ash/laser/laser_pointer_controller_test_api.h:27: const LaserPointerPoints& predicted_laser_points(); On 2017/03/16 at 20:18:30, Daniel Erat ...
3 years, 9 months ago (2017-03-16 20:42:49 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2745953002/160001
3 years, 9 months ago (2017-03-16 20:43:42 UTC) #26
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 21:50:46 UTC) #29
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/6e29796bd01d666af693908264a2...

Powered by Google App Engine
This is Rietveld 408576698