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

Unified Diff: content/browser/renderer_host/media/video_capture_controller.h

Issue 2810723002: Refactor VideoCaptureManager::GetDeviceFormatsInUse() (Closed)
Patch Set: Addressed review comments Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/video_capture_controller.h
diff --git a/content/browser/renderer_host/media/video_capture_controller.h b/content/browser/renderer_host/media/video_capture_controller.h
index 470bba623a2b319f1a8280d20d14e6b36c972e60..a856a34d86288d1de9cab54ce04641f6e150c208 100644
--- a/content/browser/renderer_host/media/video_capture_controller.h
+++ b/content/browser/renderer_host/media/video_capture_controller.h
@@ -97,7 +97,7 @@ class CONTENT_EXPORT VideoCaptureController
int buffer_id,
double consumer_resource_utilization);
- const media::VideoCaptureFormat& GetVideoCaptureFormat() const;
+ const base::Optional<media::VideoCaptureFormat> GetVideoCaptureFormat() const;
bool has_received_frames() const { return has_received_frames_; }
@@ -241,7 +241,7 @@ class CONTENT_EXPORT VideoCaptureController
// True if the controller has received a video frame from the device.
bool has_received_frames_;
- media::VideoCaptureFormat video_capture_format_;
+ base::Optional<media::VideoCaptureFormat> video_capture_format_;
base::WeakPtrFactory<VideoCaptureController> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698