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

Side by Side Diff: webrtc/video/video_capture_input.h

Issue 1476453002: Clean up PlatformThread. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: IsRunning DCHECK Created 5 years 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 | « webrtc/video/rampup_tests.cc ('k') | webrtc/video/video_capture_input.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 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ProcessThread* const module_process_thread_; 71 ProcessThread* const module_process_thread_;
72 72
73 VideoCaptureCallback* const frame_callback_; 73 VideoCaptureCallback* const frame_callback_;
74 VideoRenderer* const local_renderer_; 74 VideoRenderer* const local_renderer_;
75 SendStatisticsProxy* const stats_proxy_; 75 SendStatisticsProxy* const stats_proxy_;
76 76
77 // Frame used in IncomingFrameI420. 77 // Frame used in IncomingFrameI420.
78 rtc::scoped_ptr<CriticalSectionWrapper> incoming_frame_cs_; 78 rtc::scoped_ptr<CriticalSectionWrapper> incoming_frame_cs_;
79 VideoFrame incoming_frame_; 79 VideoFrame incoming_frame_;
80 80
81 rtc::scoped_ptr<PlatformThread> encoder_thread_; 81 rtc::PlatformThread encoder_thread_;
82 rtc::scoped_ptr<EventWrapper> capture_event_; 82 rtc::scoped_ptr<EventWrapper> capture_event_;
83 83
84 volatile int stop_; 84 volatile int stop_;
85 85
86 VideoFrame captured_frame_ GUARDED_BY(capture_cs_.get()); 86 VideoFrame captured_frame_ GUARDED_BY(capture_cs_.get());
87 // Used to make sure incoming time stamp is increasing for every frame. 87 // Used to make sure incoming time stamp is increasing for every frame.
88 int64_t last_captured_timestamp_; 88 int64_t last_captured_timestamp_;
89 // Delta used for translating between NTP and internal timestamps. 89 // Delta used for translating between NTP and internal timestamps.
90 const int64_t delta_ntp_internal_ms_; 90 const int64_t delta_ntp_internal_ms_;
91 91
92 rtc::scoped_ptr<OveruseFrameDetector> overuse_detector_; 92 rtc::scoped_ptr<OveruseFrameDetector> overuse_detector_;
93 EncodingTimeObserver* const encoding_time_observer_; 93 EncodingTimeObserver* const encoding_time_observer_;
94 }; 94 };
95 95
96 } // namespace internal 96 } // namespace internal
97 } // namespace webrtc 97 } // namespace webrtc
98 98
99 #endif // WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_ 99 #endif // WEBRTC_VIDEO_VIDEO_CAPTURE_INPUT_H_
OLDNEW
« no previous file with comments | « webrtc/video/rampup_tests.cc ('k') | webrtc/video/video_capture_input.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698