Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: media/base/ipc/media_param_traits.h

Issue 2606983002: Media Capture Depth Stream Extensions API: focal length and depth range. (Closed)
Patch Set: base::Optional and nits, thanks mcasas@. Created 3 years, 11 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: media/base/ipc/media_param_traits.h
diff --git a/media/base/ipc/media_param_traits.h b/media/base/ipc/media_param_traits.h
index dcc5833af72dc2c897501824d7a206d41705a7d3..5def79baa35054fc45f9e287b0c83c76840a9106 100644
--- a/media/base/ipc/media_param_traits.h
+++ b/media/base/ipc/media_param_traits.h
@@ -8,6 +8,7 @@
#include "ipc/ipc_message.h"
#include "ipc/ipc_param_traits.h"
#include "media/base/ipc/media_param_traits_macros.h"
+#include "media/capture/video/video_capture_device_descriptor.h"
namespace media {
class AudioParameters;
@@ -38,6 +39,17 @@ struct ParamTraits<media::EncryptionScheme> {
static void Log(const param_type& p, std::string* l);
+template <>
+struct ParamTraits<media::VideoCaptureDeviceDescriptor::CameraCalibration> {
+ typedef media::VideoCaptureDeviceDescriptor::CameraCalibration param_type;
+ static void GetSize(base::PickleSizer* s, const param_type& p);
+ static void Write(base::Pickle* m, const param_type& p);
+ static bool Read(const base::Pickle* m,
+ base::PickleIterator* iter,
+ param_type* r);
+ static void Log(const param_type& p, std::string* l);
} // namespace IPC

Powered by Google App Engine
This is Rietveld 408576698