Chromium Code Reviews

Unified Diff: webrtc/common_video/video_render_frames.cc

Issue 1888593004: Delete all use of tick_util.h. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: webrtc/common_video/video_render_frames.cc
diff --git a/webrtc/common_video/video_render_frames.cc b/webrtc/common_video/video_render_frames.cc
index 8b447cb10faa5161bbdcc9eea0a2c278e356e301..4a0b8901a2bf3fbd18b9801db79d93cd49d1be09 100644
--- a/webrtc/common_video/video_render_frames.cc
+++ b/webrtc/common_video/video_render_frames.cc
@@ -12,8 +12,8 @@
#include <assert.h>
+#include "webrtc/base/timeutils.h"
#include "webrtc/modules/include/module_common_types.h"
-#include "webrtc/system_wrappers/include/tick_util.h"
#include "webrtc/system_wrappers/include/trace.h"
namespace webrtc {
@@ -27,7 +27,7 @@ VideoRenderFrames::VideoRenderFrames()
}
int32_t VideoRenderFrames::AddFrame(const VideoFrame& new_frame) {
- const int64_t time_now = TickTime::MillisecondTimestamp();
+ const int64_t time_now = rtc::Time64();
// Drop old frames only when there are other frames in the queue, otherwise, a
// really slow system never renders any frames.
@@ -74,7 +74,7 @@ uint32_t VideoRenderFrames::TimeToNextFrameRelease() {
}
const int64_t time_to_release = incoming_frames_.front().render_time_ms() -
render_delay_ms_ -
- TickTime::MillisecondTimestamp();
+ rtc::Time64();
return time_to_release < 0 ? 0u : static_cast<uint32_t>(time_to_release);
}

Powered by Google App Engine