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

Unified Diff: remoting/protocol/webrtc_connection_to_client.cc

Issue 2413553003: Add InputEventTimestampSource interface. (Closed)
Patch Set: msvc compilation Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/webrtc_connection_to_client.h ('k') | remoting/protocol/webrtc_video_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_connection_to_client.cc
diff --git a/remoting/protocol/webrtc_connection_to_client.cc b/remoting/protocol/webrtc_connection_to_client.cc
index a1df3511fd36107269be16ba5f745283b5ffaf3d..60f02823a1acd68fa951e6a9366e9c5f30b5fcc5 100644
--- a/remoting/protocol/webrtc_connection_to_client.cc
+++ b/remoting/protocol/webrtc_connection_to_client.cc
@@ -83,6 +83,8 @@ std::unique_ptr<VideoStream> WebrtcConnectionToClient::StartVideoStream(
std::unique_ptr<WebrtcVideoStream> stream(new WebrtcVideoStream());
stream->Start(std::move(desktop_capturer), transport_.get(),
video_encode_task_runner_);
+ stream->SetEventTimestampsSource(
+ event_dispatcher_->event_timestamps_source());
return std::move(stream);
}
@@ -181,9 +183,6 @@ void WebrtcConnectionToClient::OnWebrtcTransportIncomingDataChannel(
DCHECK(thread_checker_.CalledOnValidThread());
if (name == event_dispatcher_->channel_name() &&
!event_dispatcher_->is_connected()) {
- event_dispatcher_->set_on_input_event_callback(
- base::Bind(&WebrtcConnectionToClient::OnInputEventReceived,
- base::Unretained(this)));
event_dispatcher_->Init(std::move(pipe), this);
}
}
@@ -218,10 +217,5 @@ void WebrtcConnectionToClient::OnChannelClosed(
Disconnect(INCOMPATIBLE_PROTOCOL);
}
-void WebrtcConnectionToClient::OnInputEventReceived(int64_t timestamp) {
- DCHECK(thread_checker_.CalledOnValidThread());
- event_handler_->OnInputEventReceived(timestamp);
-}
-
} // namespace protocol
} // namespace remoting
« no previous file with comments | « remoting/protocol/webrtc_connection_to_client.h ('k') | remoting/protocol/webrtc_video_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698