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

Unified Diff: services/video_capture/public/interfaces/capture_settings_traits.cc

Issue 2813343002: [Mojo Video Capture] Switch to using Mojo structs in media/capture/mojo (Closed)
Patch Set: Removed extraneous AtLeast Created 3 years, 8 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: services/video_capture/public/interfaces/capture_settings_traits.cc
diff --git a/services/video_capture/public/interfaces/capture_settings_traits.cc b/services/video_capture/public/interfaces/capture_settings_traits.cc
deleted file mode 100644
index d113c775bf0f5fbe3e9d3ebdd0bfc7dcd51a66ad..0000000000000000000000000000000000000000
--- a/services/video_capture/public/interfaces/capture_settings_traits.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "services/video_capture/public/interfaces/capture_settings_traits.h"
-
-#include "media/capture/mojo/video_capture_types_typemap_traits.h"
-#include "ui/gfx/geometry/mojo/geometry_struct_traits.h"
-
-namespace mojo {
-
-// static
-bool StructTraits<video_capture::mojom::I420CaptureFormatDataView,
- video_capture::I420CaptureFormat>::
- Read(video_capture::mojom::I420CaptureFormatDataView data,
- video_capture::I420CaptureFormat* out) {
- if (!data.ReadFrameSize(&out->frame_size))
- return false;
- out->frame_rate = data.frame_rate();
- return true;
-}
-
-// static
-bool StructTraits<video_capture::mojom::CaptureSettingsDataView,
- video_capture::CaptureSettings>::
- Read(video_capture::mojom::CaptureSettingsDataView data,
- video_capture::CaptureSettings* out) {
- if (!data.ReadFormat(&out->format))
- return false;
- if (!data.ReadResolutionChangePolicy(&out->resolution_change_policy))
- return false;
- if (!data.ReadPowerLineFrequency(&out->power_line_frequency))
- return false;
- return true;
-}
-
-} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698