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

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

Issue 2482983002: MediaSettingsRange: s/long/double/ in MediaSettingsRange.idl and PhotoCapabilities.idl (Closed)
Patch Set: reillyg@s comments Created 4 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
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
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 std::unique_ptr<VideoCaptureDevice::Client> client_; 63 std::unique_ptr<VideoCaptureDevice::Client> client_;
64 // |fake_frame_| is used for capturing on Own Buffers. 64 // |fake_frame_| is used for capturing on Own Buffers.
65 std::unique_ptr<uint8_t[]> fake_frame_; 65 std::unique_ptr<uint8_t[]> fake_frame_;
66 // Time when the next beep occurs. 66 // Time when the next beep occurs.
67 base::TimeDelta beep_time_; 67 base::TimeDelta beep_time_;
68 // Time since the fake video started rendering frames. 68 // Time since the fake video started rendering frames.
69 base::TimeDelta elapsed_time_; 69 base::TimeDelta elapsed_time_;
70 VideoCaptureFormat capture_format_; 70 VideoCaptureFormat capture_format_;
71 71
72 uint32_t current_zoom_; 72 float current_zoom_;
Reilly Grant (use Gerrit) 2016/11/10 01:00:07 s/float/double/
mcasas 2016/11/10 06:26:30 Done.
73 73
74 // The system time when we receive the first frame. 74 // The system time when we receive the first frame.
75 base::TimeTicks first_ref_time_; 75 base::TimeTicks first_ref_time_;
76 // FakeVideoCaptureDevice post tasks to itself for frame construction and 76 // FakeVideoCaptureDevice post tasks to itself for frame construction and
77 // needs to deal with asynchronous StopAndDeallocate(). 77 // needs to deal with asynchronous StopAndDeallocate().
78 base::WeakPtrFactory<FakeVideoCaptureDevice> weak_factory_; 78 base::WeakPtrFactory<FakeVideoCaptureDevice> weak_factory_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(FakeVideoCaptureDevice); 80 DISALLOW_COPY_AND_ASSIGN(FakeVideoCaptureDevice);
81 }; 81 };
82 82
83 } // namespace media 83 } // namespace media
84 84
85 #endif // MEDIA_CAPTURE_VIDEO_FAKE_VIDEO_CAPTURE_DEVICE_H_ 85 #endif // MEDIA_CAPTURE_VIDEO_FAKE_VIDEO_CAPTURE_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698