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

Side by Side Diff: media/video/capture/win/video_capture_device_mf_win.h

Issue 24133002: Make VideoCaptureController single-threaded and not ref counted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git pull Created 7 years, 3 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 // Windows specific implementation of VideoCaptureDevice. 5 // Windows specific implementation of VideoCaptureDevice.
6 // DirectShow is used for capturing. DirectShow provide its own threads 6 // DirectShow is used for capturing. DirectShow provide its own threads
7 // for capturing. 7 // for capturing.
8 8
9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ 9 #ifndef MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_
10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ 10 #define MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_
(...skipping 10 matching lines...) Expand all
21 #include "media/video/capture/video_capture_device.h" 21 #include "media/video/capture/video_capture_device.h"
22 22
23 interface IMFSourceReader; 23 interface IMFSourceReader;
24 24
25 namespace media { 25 namespace media {
26 26
27 class MFReaderCallback; 27 class MFReaderCallback;
28 28
29 class MEDIA_EXPORT VideoCaptureDeviceMFWin 29 class MEDIA_EXPORT VideoCaptureDeviceMFWin
30 : public base::NonThreadSafe, 30 : public base::NonThreadSafe,
31 public VideoCaptureDevice { 31 public VideoCaptureDevice1 {
32 public: 32 public:
33 explicit VideoCaptureDeviceMFWin(const Name& device_name); 33 explicit VideoCaptureDeviceMFWin(const Name& device_name);
34 virtual ~VideoCaptureDeviceMFWin(); 34 virtual ~VideoCaptureDeviceMFWin();
35 35
36 // Opens the device driver for this device. 36 // Opens the device driver for this device.
37 // This function is used by the static VideoCaptureDevice::Create function. 37 // This function is used by the static VideoCaptureDevice::Create function.
38 bool Init(); 38 bool Init();
39 39
40 // VideoCaptureDevice implementation. 40 // VideoCaptureDevice implementation.
41 virtual void Allocate(const VideoCaptureCapability& capture_format, 41 virtual void Allocate(const VideoCaptureCapability& capture_format,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 VideoCaptureDevice::EventHandler* observer_; 74 VideoCaptureDevice::EventHandler* observer_;
75 base::win::ScopedComPtr<IMFSourceReader> reader_; 75 base::win::ScopedComPtr<IMFSourceReader> reader_;
76 bool capture_; 76 bool capture_;
77 77
78 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceMFWin); 78 DISALLOW_IMPLICIT_CONSTRUCTORS(VideoCaptureDeviceMFWin);
79 }; 79 };
80 80
81 } // namespace media 81 } // namespace media
82 82
83 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_ 83 #endif // MEDIA_VIDEO_CAPTURE_WIN_VIDEO_CAPTURE_DEVICE_MF_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698