Chromium Code Reviews| Index: webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc |
| diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc b/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc |
| index d3035a15ca52d4c3f79aa2082c0dc4610e97f9ea..3d3c006196223c8290475b07a351760f55d8f776 100644 |
| --- a/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc |
| +++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.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 { |
| @@ -95,7 +95,7 @@ void ScreenCapturerWinGdi::SetSharedMemoryFactory( |
| } |
| void ScreenCapturerWinGdi::Capture(const DesktopRegion& region) { |
| - TickTime capture_start_time = TickTime::Now(); |
| + int64_t capture_start_time = rtc::TimeNanos(); |
|
stefan-webrtc
2016/04/19 09:19:12
_nanos
nisse-webrtc
2016/04/19 12:19:25
Done.
|
| queue_.MoveToNextFrame(); |
| @@ -152,7 +152,7 @@ void ScreenCapturerWinGdi::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) / rtc::kNumNanosecsPerMillisec; |
| callback_->OnCaptureCompleted(frame); |
| } |