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

Issue 2413553003: Add InputEventTimestampSource interface. (Closed)

Created:
4 years, 2 months ago by Sergey Ulanov
Modified:
4 years, 2 months ago
Reviewers:
Jamie
CC:
chromium-reviews, posciak+watch_chromium.org, chromoting-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add InputEventTimestampSource interface. Previously event timestamps were passed to VideoStream implementations using OnInputEventReceived(). Now VideoStream gets a pointer to InputEventTimestampSource, and then uses it to get event timestamp when capturing each frame. This will allow to use fake input event timestamps in performance tests. Committed: https://crrev.com/e84cc62bc689161a28ec35b551f6b364e72989fe Cr-Commit-Position: refs/heads/master@{#425554}

Patch Set 1 #

Total comments: 6

Patch Set 2 : address feedback #

Total comments: 4

Patch Set 3 : reword TODO #

Patch Set 4 : msvc compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -115 lines) Patch
M remoting/host/client_session.h View 1 chunk +0 lines, -1 line 0 comments Download
M remoting/host/client_session.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M remoting/protocol/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/protocol/connection_to_client.h View 1 chunk +0 lines, -3 lines 0 comments Download
M remoting/protocol/connection_unittest.cc View 1 2 3 3 chunks +6 lines, -5 lines 0 comments Download
M remoting/protocol/fake_connection_to_client.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M remoting/protocol/fake_connection_to_client.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M remoting/protocol/host_event_dispatcher.h View 1 2 3 chunks +13 lines, -7 lines 0 comments Download
M remoting/protocol/host_event_dispatcher.cc View 1 2 3 3 chunks +7 lines, -3 lines 0 comments Download
M remoting/protocol/ice_connection_to_client.cc View 1 3 chunks +1 line, -10 lines 0 comments Download
A remoting/protocol/input_event_timestamps.h View 1 2 1 chunk +66 lines, -0 lines 0 comments Download
A remoting/protocol/input_event_timestamps.cc View 1 1 chunk +25 lines, -0 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.h View 1 chunk +0 lines, -1 line 0 comments Download
M remoting/protocol/video_frame_pump.h View 1 4 chunks +7 lines, -10 lines 0 comments Download
M remoting/protocol/video_frame_pump.cc View 1 3 chunks +17 lines, -19 lines 0 comments Download
M remoting/protocol/video_stream.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_client.h View 1 chunk +0 lines, -3 lines 0 comments Download
M remoting/protocol/webrtc_connection_to_client.cc View 1 3 chunks +2 lines, -8 lines 0 comments Download
M remoting/protocol/webrtc_video_stream.h View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M remoting/protocol/webrtc_video_stream.cc View 1 2 4 chunks +20 lines, -27 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (7 generated)
Sergey Ulanov
4 years, 2 months ago (2016-10-12 21:13:01 UTC) #2
Jamie
https://codereview.chromium.org/2413553003/diff/1/remoting/protocol/input_event_timestamps.cc File remoting/protocol/input_event_timestamps.cc (right): https://codereview.chromium.org/2413553003/diff/1/remoting/protocol/input_event_timestamps.cc#newcode20 remoting/protocol/input_event_timestamps.cc:20: last_timestamps_ = InputEventTimestamps(); Why reset this here? It makes ...
4 years, 2 months ago (2016-10-12 21:41:23 UTC) #3
Sergey Ulanov
https://codereview.chromium.org/2413553003/diff/1/remoting/protocol/input_event_timestamps.cc File remoting/protocol/input_event_timestamps.cc (right): https://codereview.chromium.org/2413553003/diff/1/remoting/protocol/input_event_timestamps.cc#newcode20 remoting/protocol/input_event_timestamps.cc:20: last_timestamps_ = InputEventTimestamps(); On 2016/10/12 21:41:23, Jamie wrote: > ...
4 years, 2 months ago (2016-10-14 19:34:26 UTC) #4
Jamie
lgtm https://codereview.chromium.org/2413553003/diff/20001/remoting/protocol/fake_connection_to_client.h File remoting/protocol/fake_connection_to_client.h (right): https://codereview.chromium.org/2413553003/diff/20001/remoting/protocol/fake_connection_to_client.h#newcode30 remoting/protocol/fake_connection_to_client.h:30: event_timestamps_source) override; Nit: Indentation. https://codereview.chromium.org/2413553003/diff/20001/remoting/protocol/host_event_dispatcher.h File remoting/protocol/host_event_dispatcher.h (right): ...
4 years, 2 months ago (2016-10-14 20:30:30 UTC) #5
Sergey Ulanov
https://codereview.chromium.org/2413553003/diff/20001/remoting/protocol/fake_connection_to_client.h File remoting/protocol/fake_connection_to_client.h (right): https://codereview.chromium.org/2413553003/diff/20001/remoting/protocol/fake_connection_to_client.h#newcode30 remoting/protocol/fake_connection_to_client.h:30: event_timestamps_source) override; On 2016/10/14 20:30:30, Jamie wrote: > Nit: ...
4 years, 2 months ago (2016-10-14 21:04:20 UTC) #6
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/2413553003/40001
4 years, 2 months ago (2016-10-14 21:05:25 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/298341)
4 years, 2 months ago (2016-10-14 21:48:05 UTC) #11
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/2413553003/60001
4 years, 2 months ago (2016-10-15 05:52:28 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-15 06:54:27 UTC) #15
commit-bot: I haz the power
4 years, 2 months ago (2016-10-15 06:56:53 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e84cc62bc689161a28ec35b551f6b364e72989fe
Cr-Commit-Position: refs/heads/master@{#425554}

Powered by Google App Engine
This is Rietveld 408576698