Chromium Code Reviews| Index: media/capture/video/win/video_capture_device_win.cc |
| diff --git a/media/capture/video/win/video_capture_device_win.cc b/media/capture/video/win/video_capture_device_win.cc |
| index c9961fa222eb84d90c768ea9e40da3574cf63074..d3ef73abe3a55dc14606f3fd2a019033a897ef1c 100644 |
| --- a/media/capture/video/win/video_capture_device_win.cc |
| +++ b/media/capture/video/win/video_capture_device_win.cc |
| @@ -447,9 +447,17 @@ void VideoCaptureDeviceWin::StopAndDeAllocate() { |
| } |
| // Implements SinkFilterObserver::SinkFilterObserver. |
| -void VideoCaptureDeviceWin::FrameReceived(const uint8* buffer, int length) { |
| - client_->OnIncomingCapturedData(buffer, length, capture_format_, 0, |
| - base::TimeTicks::Now()); |
| +void VideoCaptureDeviceWin::FrameReceived( |
| + const uint8* buffer, |
| + int length, |
| + REFERENCE_TIME raw_timestamp) { |
| + client_->OnIncomingCapturedData( |
| + buffer, |
| + length, |
| + capture_format_, |
| + 0, |
| + base::TimeTicks() + |
|
mcasas
2015/09/09 23:33:27
Funny you need to add a dummy ctor to add a TimeDe
qiangchen
2015/09/10 18:03:01
TimeTicks has only static function FromInternalVal
|
| + base::TimeDelta::FromMicroseconds(raw_timestamp / 10)); |
| } |
| bool VideoCaptureDeviceWin::CreateCapabilityMap() { |