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

Side by Side Diff: content/renderer/media/rtc_video_capturer.h

Issue 13554003: Use NTP time for video frame timestamp. Add tracing for timestamps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix RenderFrame using timestamp as nanoseconds. Created 7 years, 8 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURER_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURER_H_ 6 #define CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual void OnFrameCaptured( 44 virtual void OnFrameCaptured(
45 const media::VideoCapture::VideoFrameBuffer& frame); 45 const media::VideoCapture::VideoFrameBuffer& frame);
46 46
47 // State change callback, must be called on same thread as Start is called. 47 // State change callback, must be called on same thread as Start is called.
48 void OnStateChange(RtcVideoCaptureDelegate::CaptureState state); 48 void OnStateChange(RtcVideoCaptureDelegate::CaptureState state);
49 49
50 const bool is_screencast_; 50 const bool is_screencast_;
51 scoped_refptr<RtcVideoCaptureDelegate> delegate_; 51 scoped_refptr<RtcVideoCaptureDelegate> delegate_;
52 VideoCaptureState state_; 52 VideoCaptureState state_;
53 base::Time start_time_; 53 base::Time start_time_;
54 base::Time ntp_epoch_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(RtcVideoCapturer); 56 DISALLOW_COPY_AND_ASSIGN(RtcVideoCapturer);
56 }; 57 };
57 58
58 } // namespace content 59 } // namespace content
59 60
60 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURER_H_ 61 #endif // CONTENT_RENDERER_MEDIA_RTC_VIDEO_CAPTURER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/web_contents_video_capture_device.cc ('k') | content/renderer/media/rtc_video_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698