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

Side by Side Diff: media/capture/video/fake_video_capture_device.h

Issue 2081653004: Revert of Re-Reland: Make media/capture gn and gyps produce components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 // Implementation of a fake VideoCaptureDevice class. Used for testing other 5 // Implementation of a fake VideoCaptureDevice class. Used for testing other
6 // video capture classes when no real hardware is available. 6 // video capture classes when no real hardware is available.
7 7
8 #ifndef MEDIA_CAPTURE_VIDEO_FAKE_VIDEO_CAPTURE_DEVICE_H_ 8 #ifndef MEDIA_CAPTURE_VIDEO_FAKE_VIDEO_CAPTURE_DEVICE_H_
9 #define MEDIA_CAPTURE_VIDEO_FAKE_VIDEO_CAPTURE_DEVICE_H_ 9 #define MEDIA_CAPTURE_VIDEO_FAKE_VIDEO_CAPTURE_DEVICE_H_
10 10
11 #include <stdint.h> 11 #include <stdint.h>
12 12
13 #include <memory> 13 #include <memory>
14 #include <string> 14 #include <string>
15 15
16 #include "base/atomicops.h" 16 #include "base/atomicops.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
19 #include "base/threading/thread_checker.h" 19 #include "base/threading/thread_checker.h"
20 #include "base/time/time.h" 20 #include "base/time/time.h"
21 #include "media/capture/video/video_capture_device.h" 21 #include "media/capture/video/video_capture_device.h"
22 22
23 namespace media { 23 namespace media {
24 24
25 class CAPTURE_EXPORT FakeVideoCaptureDevice : public VideoCaptureDevice { 25 class MEDIA_EXPORT FakeVideoCaptureDevice : public VideoCaptureDevice {
26 public: 26 public:
27 enum class BufferOwnership { 27 enum class BufferOwnership {
28 OWN_BUFFERS, 28 OWN_BUFFERS,
29 CLIENT_BUFFERS, 29 CLIENT_BUFFERS,
30 }; 30 };
31 31
32 FakeVideoCaptureDevice(BufferOwnership buffer_ownership, 32 FakeVideoCaptureDevice(BufferOwnership buffer_ownership,
33 float fake_capture_rate); 33 float fake_capture_rate);
34 ~FakeVideoCaptureDevice() override; 34 ~FakeVideoCaptureDevice() override;
35 35
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // FakeVideoCaptureDevice post tasks to itself for frame construction and 68 // FakeVideoCaptureDevice post tasks to itself for frame construction and
69 // needs to deal with asynchronous StopAndDeallocate(). 69 // needs to deal with asynchronous StopAndDeallocate().
70 base::WeakPtrFactory<FakeVideoCaptureDevice> weak_factory_; 70 base::WeakPtrFactory<FakeVideoCaptureDevice> weak_factory_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(FakeVideoCaptureDevice); 72 DISALLOW_COPY_AND_ASSIGN(FakeVideoCaptureDevice);
73 }; 73 };
74 74
75 } // namespace media 75 } // namespace media
76 76
77 #endif // MEDIA_CAPTURE_VIDEO_FAKE_VIDEO_CAPTURE_DEVICE_H_ 77 #endif // MEDIA_CAPTURE_VIDEO_FAKE_VIDEO_CAPTURE_DEVICE_H_
OLDNEW
« no previous file with comments | « media/capture/video/android/video_capture_device_factory_android.h ('k') | media/capture/video/fake_video_capture_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698