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

Unified Diff: content/common/media/media_param_traits.h

Issue 23551011: From Video Capture, abolish OnFrameInfo and enable resolution changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add assert to vcbp unittest Created 7 years, 2 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/common/media/media_param_traits.h
diff --git a/content/common/media/media_param_traits.h b/content/common/media/media_param_traits.h
index f1696197febe1214bc33f26f9b6690e5828d0bda..e436d4f000fe129003877e9f50e08dd1c78cdf26 100644
--- a/content/common/media/media_param_traits.h
+++ b/content/common/media/media_param_traits.h
@@ -11,6 +11,7 @@
namespace media {
class AudioParameters;
+class VideoCaptureFormat;
class VideoCaptureParams;
}
@@ -32,6 +33,13 @@ struct CONTENT_EXPORT ParamTraits<media::VideoCaptureParams> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct CONTENT_EXPORT ParamTraits<media::VideoCaptureFormat> {
+ typedef media::VideoCaptureFormat param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, 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