| Index: webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
|
| diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc b/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
|
| index 8af9779ce80e02f7774f7e5c9fbfb881b3ab5ffc..439b006f930b0ebf1df2f7d9a78f1b03c0a95e48 100644
|
| --- a/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
|
| +++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
|
| @@ -14,6 +14,7 @@
|
|
|
| #include <utility>
|
|
|
| +#include "webrtc/base/timeutils.h"
|
| #include "webrtc/modules/desktop_capture/desktop_capture_options.h"
|
| #include "webrtc/modules/desktop_capture/desktop_frame.h"
|
| #include "webrtc/modules/desktop_capture/desktop_frame_win.h"
|
| @@ -24,7 +25,6 @@
|
| #include "webrtc/modules/desktop_capture/win/desktop.h"
|
| #include "webrtc/modules/desktop_capture/win/screen_capture_utils.h"
|
| #include "webrtc/system_wrappers/include/logging.h"
|
| -#include "webrtc/system_wrappers/include/tick_util.h"
|
|
|
| namespace webrtc {
|
|
|
| @@ -88,7 +88,7 @@ void ScreenCapturerWinMagnifier::SetSharedMemoryFactory(
|
| }
|
|
|
| void ScreenCapturerWinMagnifier::Capture(const DesktopRegion& region) {
|
| - TickTime capture_start_time = TickTime::Now();
|
| + int64_t capture_start_time_nanos = rtc::TimeNanos();
|
|
|
| queue_.MoveToNextFrame();
|
|
|
| @@ -169,7 +169,8 @@ void ScreenCapturerWinMagnifier::Capture(const DesktopRegion& region) {
|
| frame->mutable_updated_region()->Clear();
|
| helper_.TakeInvalidRegion(frame->mutable_updated_region());
|
| frame->set_capture_time_ms(
|
| - (TickTime::Now() - capture_start_time).Milliseconds());
|
| + (rtc::TimeNanos() - capture_start_time_nanos) /
|
| + rtc::kNumNanosecsPerMillisec);
|
| callback_->OnCaptureCompleted(frame);
|
| }
|
|
|
|
|