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

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

Issue 2502483003: [Mojo Video Capture] Cleanup naming of classes/files in services/video_capture (Closed)
Patch Set: Rebase 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/capture_settings.h
diff --git a/services/video_capture/public/cpp/video_capture_settings.h b/services/video_capture/public/cpp/capture_settings.h
similarity index 69%
rename from services/video_capture/public/cpp/video_capture_settings.h
rename to services/video_capture/public/cpp/capture_settings.h
index 3f1f5d02ee9dc839d0aec0cc074de164e4dcfef6..38d0ec32343b3bed54a20eb542ba07ca1f1c72f2 100644
--- a/services/video_capture/public/cpp/video_capture_settings.h
+++ b/services/video_capture/public/cpp/capture_settings.h
@@ -2,20 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef SERVICES_VIDEO_CAPTURE_PUBLIC_CPP_VIDEO_CAPTURE_FORMAT_H_
-#define SERVICES_VIDEO_CAPTURE_PUBLIC_CPP_VIDEO_CAPTURE_FORMAT_H_
+#ifndef SERVICES_VIDEO_CAPTURE_PUBLIC_CPP_CAPTURE_SETTINGS_H_
+#define SERVICES_VIDEO_CAPTURE_PUBLIC_CPP_CAPTURE_SETTINGS_H_
#include "media/capture/video_capture_types.h"
#include "ui/gfx/geometry/size.h"
namespace video_capture {
-// Cpp equivalent of Mojo struct video_capture::mojom::VideoCaptureFormat.
-struct VideoCaptureFormat {
+// Cpp equivalent of Mojo struct video_capture::mojom::CaptureFormat.
+struct I420CaptureFormat {
gfx::Size frame_size;
float frame_rate;
- bool operator==(const VideoCaptureFormat& other) const {
+ bool operator==(const I420CaptureFormat& other) const {
return frame_size == other.frame_size && frame_rate == other.frame_rate;
}
@@ -28,9 +28,9 @@ struct VideoCaptureFormat {
}
};
-// Cpp equivalent of Mojo struct video_capture::mojom::VideoCaptureSettings.
-struct VideoCaptureSettings {
- VideoCaptureFormat format;
+// Cpp equivalent of Mojo struct video_capture::mojom::CaptureSettings.
+struct CaptureSettings {
+ I420CaptureFormat format;
media::ResolutionChangePolicy resolution_change_policy;
media::PowerLineFrequency power_line_frequency;
@@ -44,4 +44,4 @@ struct VideoCaptureSettings {
} // namespace video_capture
-#endif // SERVICES_VIDEO_CAPTURE_PUBLIC_CPP_VIDEO_CAPTURE_FORMAT_H_
+#endif // SERVICES_VIDEO_CAPTURE_PUBLIC_CPP_CAPTURE_SETTINGS_H_
« no previous file with comments | « services/video_capture/mock_video_frame_receiver.cc ('k') | services/video_capture/public/cpp/video_capture_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698