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

Unified Diff: remoting/host/cast_video_capturer_adapter.cc

Issue 1456083002: remoting: remove usage of CapturedFrame.elapsed_time in CastVideoCapturerAdapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/host/cast_video_capturer_adapter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/cast_video_capturer_adapter.cc
diff --git a/remoting/host/cast_video_capturer_adapter.cc b/remoting/host/cast_video_capturer_adapter.cc
index 02caeffbf83bc0a5da00e53bb9556eb20a15eb8e..2c29663005691fc11f383f7929db52e12973cbc6 100644
--- a/remoting/host/cast_video_capturer_adapter.cc
+++ b/remoting/host/cast_video_capturer_adapter.cc
@@ -45,8 +45,6 @@ void CastVideoCapturerAdapter::OnCaptureCompleted(webrtc::DesktopFrame* frame) {
captured_frame.width = owned_frame->size().width();
captured_frame.height = owned_frame->size().height();
base::TimeTicks current_time = base::TimeTicks::Now();
- captured_frame.elapsed_time = (current_time - start_time_).InMicroseconds() *
- base::Time::kNanosecondsPerMicrosecond;
captured_frame.time_stamp =
current_time.ToInternalValue() * base::Time::kNanosecondsPerMicrosecond;
captured_frame.data = owned_frame->data();
@@ -91,10 +89,6 @@ cricket::CaptureState CastVideoCapturerAdapter::Start(
desktop_capturer_->Start(this);
- // Save the Start() time of |desktop_capturer_|. This will be used
- // to estimate the creation time of the frame source, to set the elapsed_time
- // of future CapturedFrames in OnCaptureCompleted().
- start_time_ = base::TimeTicks::Now();
capture_timer_.reset(new base::RepeatingTimer());
capture_timer_->Start(FROM_HERE,
base::TimeDelta::FromMicroseconds(
« no previous file with comments | « remoting/host/cast_video_capturer_adapter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698