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

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

Issue 2606983002: Media Capture Depth Stream Extensions API: focal length and depth range. (Closed)
Patch Set: 80-char line fix in test html. Created 3 years, 10 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_manager.h
diff --git a/content/browser/renderer_host/media/video_capture_manager.h b/content/browser/renderer_host/media/video_capture_manager.h
index 2136b308d02a6ca0e060aea10b3a123f6d6af1c3..54c2d1cb71cc5db4ff070b0d233fa87f4d92b255 100644
--- a/content/browser/renderer_host/media/video_capture_manager.h
+++ b/content/browser/renderer_host/media/video_capture_manager.h
@@ -185,6 +185,13 @@ class CONTENT_EXPORT VideoCaptureManager : public MediaStreamProvider {
base::Callback<void(const media::VideoCaptureDeviceDescriptors&)>;
void EnumerateDevices(const EnumerationCallback& client_callback);
+ // Retrieves camera calibration information for a particular device. Returns
+ // nullopt_t if the |device_id| is not found or camera calibration information
+ // is not available for the device. Camera calibration is cached during
+ // device(s) enumeration.
+ base::Optional<CameraCalibration> GetCameraCalibration(
+ const std::string& device_id);
+
private:
class CaptureDeviceStartRequest;
struct DeviceEntry;

Powered by Google App Engine
This is Rietveld 408576698