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

Side by Side Diff: remoting/host/cast_video_capturer_adapter.h

Issue 1456083002: remoting: remove usage of CapturedFrame.elapsed_time in CastVideoCapturerAdapter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | remoting/host/cast_video_capturer_adapter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 REMOTING_HOST_CAST_VIDEO_CAPTURER_ADAPTER_H_ 5 #ifndef REMOTING_HOST_CAST_VIDEO_CAPTURER_ADAPTER_H_
6 #define REMOTING_HOST_CAST_VIDEO_CAPTURER_ADAPTER_H_ 6 #define REMOTING_HOST_CAST_VIDEO_CAPTURER_ADAPTER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
11 #include "base/threading/thread_checker.h" 12 #include "base/threading/thread_checker.h"
12 #include "base/timer/timer.h" 13 #include "base/timer/timer.h"
13 #include "third_party/libjingle/source/talk/media/base/videocapturer.h" 14 #include "third_party/libjingle/source/talk/media/base/videocapturer.h"
14 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h" 15 #include "third_party/webrtc/modules/desktop_capture/screen_capturer.h"
15 16
16 namespace base { 17 namespace base {
17 class SingleThreadTaskRunner; 18 class SingleThreadTaskRunner;
18 } // namespace base 19 } // namespace base
19 20
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 63
63 // |thread_checker_| is bound to the peer connection worker thread. 64 // |thread_checker_| is bound to the peer connection worker thread.
64 base::ThreadChecker thread_checker_; 65 base::ThreadChecker thread_checker_;
65 66
66 // Used to capture frames. 67 // Used to capture frames.
67 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer_; 68 scoped_ptr<webrtc::DesktopCapturer> desktop_capturer_;
68 69
69 // Used to schedule periodic screen captures. 70 // Used to schedule periodic screen captures.
70 scoped_ptr<base::RepeatingTimer> capture_timer_; 71 scoped_ptr<base::RepeatingTimer> capture_timer_;
71 72
72 // Used to set the elapsed_time attribute of captured frames.
73 base::TimeTicks start_time_;
74
75 DISALLOW_COPY_AND_ASSIGN(CastVideoCapturerAdapter); 73 DISALLOW_COPY_AND_ASSIGN(CastVideoCapturerAdapter);
76 }; 74 };
77 75
78 } // namespace remoting 76 } // namespace remoting
79 77
80 #endif // REMOTING_HOST_CAST_VIDEO_CAPTURER_ADAPTER_H_ 78 #endif // REMOTING_HOST_CAST_VIDEO_CAPTURER_ADAPTER_H_
81 79
OLDNEW
« no previous file with comments | « no previous file | remoting/host/cast_video_capturer_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698