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

Unified Diff: media/mojo/interfaces/media_types.mojom

Issue 2240213003: Update media mojom files to use TimeDelta instead of int64 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@OnDurationChanged_CL
Patch Set: Created 4 years, 4 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 | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/interfaces/renderer.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/interfaces/media_types.mojom
diff --git a/media/mojo/interfaces/media_types.mojom b/media/mojo/interfaces/media_types.mojom
index 5f9a4f07de6cf65bca26251d1a90006a44a5c09b..810ba1a54dfdbb98c3f5cebbd3e080824abe7647 100644
--- a/media/mojo/interfaces/media_types.mojom
+++ b/media/mojo/interfaces/media_types.mojom
@@ -5,6 +5,7 @@
module media.mojom;
import "ui/gfx/geometry/mojo/geometry.mojom";
+import "mojo/common/common_custom_types.mojom";
// See media/base/buffering_state.h for descriptions.
// Kept in sync with media::BufferingState via static_asserts.
@@ -215,7 +216,7 @@ struct AudioDecoderConfig {
ChannelLayout channel_layout;
int32 samples_per_second;
array<uint8>? extra_data;
- int64 seek_preroll_usec;
+ mojo.common.mojom.TimeDelta seek_preroll;
int32 codec_delay;
EncryptionScheme encryption_scheme;
};
@@ -251,8 +252,8 @@ struct DecryptConfig {
// This defines a mojo transport format for media::DecoderBuffer.
struct DecoderBuffer {
- int64 timestamp_usec;
- int64 duration_usec;
+ mojo.common.mojom.TimeDelta timestamp;
+ mojo.common.mojom.TimeDelta duration;
// The number of bytes present in this buffer. The data is not serialized
// along with this structure and must be read from a separate DataPipe.
@@ -269,11 +270,11 @@ struct DecoderBuffer {
DecryptConfig? decrypt_config;
// These fields indicate the amount of data to discard after decoding.
- int64 front_discard_usec;
- int64 back_discard_usec;
+ mojo.common.mojom.TimeDelta front_discard;
+ mojo.common.mojom.TimeDelta back_discard;
- // Indicates this buffer is part of a splice around |splice_timestamp_usec|.
- int64 splice_timestamp_usec;
+ // Indicates this buffer is part of a splice around |splice_timestamp|.
+ mojo.common.mojom.TimeDelta splice_timestamp;
};
// This defines a mojo transport format for media::AudioBuffer.
@@ -297,7 +298,7 @@ struct AudioBuffer {
bool end_of_stream;
// Timestamp in microseconds of the first frame.
- int64 timestamp_usec;
+ mojo.common.mojom.TimeDelta timestamp;
// Channel data. Will be null for EOS buffers.
array<uint8>? data;
@@ -321,7 +322,7 @@ struct VideoFrame {
bool end_of_stream;
// Timestamp in microseconds of the associated frame.
- int64 timestamp_usec;
+ mojo.common.mojom.TimeDelta timestamp;
// Reference to the shared memory containing the frame's data.
handle<shared_buffer> frame_data;
@@ -344,4 +345,4 @@ struct PipelineStatistics {
uint32 video_frames_dropped;
int64 audio_memory_usage;
int64 video_memory_usage;
-};
+};
« no previous file with comments | « media/mojo/interfaces/BUILD.gn ('k') | media/mojo/interfaces/renderer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698