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

Side by Side Diff: webrtc/test/vcm_capturer.h

Issue 1477013005: Replace RefCountImpl with rtc::RefCountedObject. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: add back explicit Release()s in test Created 4 years, 9 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
« no previous file with comments | « webrtc/system_wrappers/system_wrappers.gyp ('k') | webrtc/test/vcm_capturer.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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 #ifndef WEBRTC_TEST_VCM_CAPTURER_H_ 10 #ifndef WEBRTC_TEST_VCM_CAPTURER_H_
11 #define WEBRTC_TEST_VCM_CAPTURER_H_ 11 #define WEBRTC_TEST_VCM_CAPTURER_H_
12 12
13 #include "webrtc/base/criticalsection.h" 13 #include "webrtc/base/criticalsection.h"
14 #include "webrtc/base/scoped_ref_ptr.h"
14 #include "webrtc/common_types.h" 15 #include "webrtc/common_types.h"
15 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h" 16 #include "webrtc/common_video/libyuv/include/webrtc_libyuv.h"
16 #include "webrtc/modules/video_capture/video_capture.h" 17 #include "webrtc/modules/video_capture/video_capture.h"
17 #include "webrtc/test/video_capturer.h" 18 #include "webrtc/test/video_capturer.h"
18 19
19 namespace webrtc { 20 namespace webrtc {
20 namespace test { 21 namespace test {
21 22
22 class VcmCapturer : public VideoCapturer, public VideoCaptureDataCallback { 23 class VcmCapturer : public VideoCapturer, public VideoCaptureDataCallback {
23 public: 24 public:
(...skipping 10 matching lines...) Expand all
34 const VideoFrame& frame) override; // NOLINT 35 const VideoFrame& frame) override; // NOLINT
35 void OnCaptureDelayChanged(const int32_t id, const int32_t delay) override; 36 void OnCaptureDelayChanged(const int32_t id, const int32_t delay) override;
36 37
37 private: 38 private:
38 explicit VcmCapturer(VideoCaptureInput* input); 39 explicit VcmCapturer(VideoCaptureInput* input);
39 bool Init(size_t width, size_t height, size_t target_fps); 40 bool Init(size_t width, size_t height, size_t target_fps);
40 void Destroy(); 41 void Destroy();
41 42
42 rtc::CriticalSection crit_; 43 rtc::CriticalSection crit_;
43 bool started_ GUARDED_BY(crit_); 44 bool started_ GUARDED_BY(crit_);
44 VideoCaptureModule* vcm_; 45 rtc::scoped_refptr<VideoCaptureModule> vcm_;
45 VideoCaptureCapability capability_; 46 VideoCaptureCapability capability_;
46 }; 47 };
47 } // test 48 } // test
48 } // webrtc 49 } // webrtc
49 50
50 #endif // WEBRTC_TEST_VCM_CAPTURER_H_ 51 #endif // WEBRTC_TEST_VCM_CAPTURER_H_
OLDNEW
« no previous file with comments | « webrtc/system_wrappers/system_wrappers.gyp ('k') | webrtc/test/vcm_capturer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698