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

Unified Diff: services/video_capture/public/cpp/video_capture_settings.h

Issue 2486543002: [Mojo Video Capture] Add test ReceiveFramesFromFakeCaptureDevice (Closed)
Patch Set: mcasas comments mk2 Created 4 years, 1 month 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: services/video_capture/public/cpp/video_capture_settings.h
diff --git a/services/video_capture/public/cpp/video_capture_settings.h b/services/video_capture/public/cpp/video_capture_settings.h
index eb1d0ff5a1dfe0e832997c30e1c7cd46e4836e7f..3f1f5d02ee9dc839d0aec0cc074de164e4dcfef6 100644
--- a/services/video_capture/public/cpp/video_capture_settings.h
+++ b/services/video_capture/public/cpp/video_capture_settings.h
@@ -15,6 +15,10 @@ struct VideoCaptureFormat {
gfx::Size frame_size;
float frame_rate;
+ bool operator==(const VideoCaptureFormat& other) const {
+ return frame_size == other.frame_size && frame_rate == other.frame_rate;
+ }
+
void ConvertToMediaVideoCaptureFormat(
media::VideoCaptureFormat* target) const {
target->frame_size = frame_size;

Powered by Google App Engine
This is Rietveld 408576698