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

Unified Diff: services/video_capture/public/interfaces/video_capture_format_traits.h

Issue 2419793003: media: Use native video enum types in media mojo interfaces (Closed)
Patch Set: media: Use native video enum types in media mojo interfaces Created 4 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
« no previous file with comments | « services/video_capture/public/interfaces/video_capture_format.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/video_capture/public/interfaces/video_capture_format_traits.h
diff --git a/services/video_capture/public/interfaces/video_capture_format_traits.h b/services/video_capture/public/interfaces/video_capture_format_traits.h
index a33beb287b999155968d140c9a70abeaffa5005a..49b94af5bca8b9278d3f02ab69eac65a473556ea 100644
--- a/services/video_capture/public/interfaces/video_capture_format_traits.h
+++ b/services/video_capture/public/interfaces/video_capture_format_traits.h
@@ -22,9 +22,9 @@ struct StructTraits<video_capture::mojom::VideoCaptureFormatDataView,
return format.frame_rate;
}
- static media::mojom::VideoFormat pixel_format(
+ static media::VideoPixelFormat pixel_format(
const media::VideoCaptureFormat& format) {
- return static_cast<media::mojom::VideoFormat>(format.pixel_format);
+ return format.pixel_format;
}
static video_capture::mojom::VideoPixelStorage pixel_storage(
« no previous file with comments | « services/video_capture/public/interfaces/video_capture_format.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698