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

Unified Diff: trunk/src/media/video/capture/fake_video_capture_device.h

Issue 84393002: Revert 236927 "Reorganize media::VideoCapture* types" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/media/video/capture/fake_video_capture_device.h
===================================================================
--- trunk/src/media/video/capture/fake_video_capture_device.h (revision 236934)
+++ trunk/src/media/video/capture/fake_video_capture_device.h (working copy)
@@ -29,9 +29,9 @@
VideoCaptureCapabilities* formats);
// VideoCaptureDevice implementation.
- virtual void AllocateAndStart(const VideoCaptureParams& params,
- scoped_ptr<VideoCaptureDevice::Client> client)
- OVERRIDE;
+ virtual void AllocateAndStart(
+ const VideoCaptureCapability& capture_format,
+ scoped_ptr<VideoCaptureDevice::Client> client) OVERRIDE;
virtual void StopAndDeAllocate() OVERRIDE;
private:
@@ -49,19 +49,19 @@
// EXPERIMENTAL, similar to allocate, but changes resolution and calls
// client->OnFrameInfoChanged(VideoCaptureCapability&)
void Reallocate();
- void PopulateFormatRoster();
+ void PopulateCapabilitiesRoster();
scoped_ptr<VideoCaptureDevice::Client> client_;
InternalState state_;
base::Thread capture_thread_;
scoped_ptr<uint8[]> fake_frame_;
int frame_count_;
- VideoCaptureFormat capture_format_;
+ VideoCaptureCapability capture_format_;
// When the device is configured as mutating video captures, this vector
// holds the available ones which are used in sequence, restarting at the end.
- std::vector<VideoCaptureFormat> format_roster_;
- int format_roster_index_;
+ std::vector<VideoCaptureCapability> capabilities_roster_;
+ int capabilities_roster_index_;
static bool fail_next_create_;

Powered by Google App Engine
This is Rietveld 408576698