diff options
Diffstat (limited to 'remoting/host/video_frame_capturer_mac.mm')
-rw-r--r-- | remoting/host/video_frame_capturer_mac.mm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/remoting/host/video_frame_capturer_mac.mm b/remoting/host/video_frame_capturer_mac.mm index 859dcb7..3d0d624 100644 --- a/remoting/host/video_frame_capturer_mac.mm +++ b/remoting/host/video_frame_capturer_mac.mm @@ -298,6 +298,8 @@ void VideoFrameCapturerMac::CaptureFrame() { // Only allow captures when the display configuration is not occurring. scoped_refptr<CaptureData> data; + base::Time capture_start_time = base::Time::Now(); + // Wait until the display configuration is stable. If one or more displays // are reconfiguring then |display_configuration_capture_event_| will not be // set until the reconfiguration completes. @@ -363,6 +365,8 @@ void VideoFrameCapturerMac::CaptureFrame() { // Move the capture frame buffer queue on to the next buffer. queue_.DoneWithCurrentFrame(); + data->set_capture_time_ms( + (base::Time::Now() - capture_start_time).InMillisecondsRoundedUp()); delegate_->OnCaptureCompleted(data); } |