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

Unified Diff: media/mojo/common/pipeline_statistics_struct_traits.h

Issue 2439813002: media: Move pipeline_statistics_struct_traits.h (Closed)
Patch Set: media: Move pipeline_statistics_struct_traits.h 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 | « no previous file | media/mojo/interfaces/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/common/pipeline_statistics_struct_traits.h
diff --git a/media/mojo/common/pipeline_statistics_struct_traits.h b/media/mojo/common/pipeline_statistics_struct_traits.h
deleted file mode 100644
index a26ef8dc59373495c817ed4a182dc9620144bed7..0000000000000000000000000000000000000000
--- a/media/mojo/common/pipeline_statistics_struct_traits.h
+++ /dev/null
@@ -1,49 +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.
-
-#ifndef MEDIA_MOJO_COMMON_PIPELINE_STATISTICS_STRUCT_TRAITS_H_
-#define MEDIA_MOJO_COMMON_PIPELINE_STATISTICS_STRUCT_TRAITS_H_
-
-#include "media/base/pipeline_status.h"
-#include "media/mojo/interfaces/media_types.mojom.h"
-
-namespace mojo {
-
-template <>
-struct StructTraits<media::mojom::PipelineStatisticsDataView,
- media::PipelineStatistics> {
- static uint64_t audio_bytes_decoded(const media::PipelineStatistics& input) {
- return input.audio_bytes_decoded;
- }
- static uint64_t video_bytes_decoded(const media::PipelineStatistics& input) {
- return input.video_bytes_decoded;
- }
- static uint32_t video_frames_decoded(const media::PipelineStatistics& input) {
- return input.video_frames_decoded;
- }
- static uint32_t video_frames_dropped(const media::PipelineStatistics& input) {
- return input.video_frames_dropped;
- }
- static int64_t audio_memory_usage(const media::PipelineStatistics& input) {
- return input.audio_memory_usage;
- }
- static int64_t video_memory_usage(const media::PipelineStatistics& input) {
- return input.video_memory_usage;
- }
-
- static bool Read(media::mojom::PipelineStatisticsDataView data,
- media::PipelineStatistics* output) {
- output->audio_bytes_decoded = data.audio_bytes_decoded();
- output->video_bytes_decoded = data.video_bytes_decoded();
- output->video_frames_decoded = data.video_frames_decoded();
- output->video_frames_dropped = data.video_frames_dropped();
- output->audio_memory_usage = data.audio_memory_usage();
- output->video_memory_usage = data.video_memory_usage();
- return true;
- }
-};
-
-} // namespace mojo
-
-#endif // MEDIA_MOJO_COMMON_PIPELINE_STATISTICS_STRUCT_TRAITS_H_
« no previous file with comments | « no previous file | media/mojo/interfaces/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698