OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 module media.mojom; | 5 module media.mojom; |
6 | 6 |
7 import "ui/gfx/geometry/mojo/geometry.mojom"; | 7 import "ui/gfx/geometry/mojo/geometry.mojom"; |
8 import "mojo/common/common_custom_types.mojom"; | 8 import "mojo/common/common_custom_types.mojom"; |
9 | 9 |
10 // See media/base/buffering_state.h for descriptions. | 10 // See media/base/buffering_state.h for descriptions. |
11 // Kept in sync with media::BufferingState via static_asserts. | 11 [Native] |
12 enum BufferingState { | 12 enum BufferingState; |
13 HAVE_NOTHING, | |
14 HAVE_ENOUGH, | |
15 }; | |
16 | 13 |
17 // See media/base/decode_status.h for descriptions. | 14 // See media/base/decode_status.h for descriptions. |
18 // Kept in sync with media::DecodeStatus via static_asserts. | 15 // Kept in sync with media::DecodeStatus via static_asserts. |
19 enum DecodeStatus { | 16 enum DecodeStatus { |
20 OK, | 17 OK, |
21 ABORTED, | 18 ABORTED, |
22 DECODE_ERROR, | 19 DECODE_ERROR, |
23 }; | 20 }; |
24 | 21 |
25 // See media/base/audio_decoder_config.h for descriptions. | 22 // See media/base/audio_decoder_config.h for descriptions. |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 }; | 338 }; |
342 | 339 |
343 struct PipelineStatistics { | 340 struct PipelineStatistics { |
344 uint64 audio_bytes_decoded; | 341 uint64 audio_bytes_decoded; |
345 uint64 video_bytes_decoded; | 342 uint64 video_bytes_decoded; |
346 uint32 video_frames_decoded; | 343 uint32 video_frames_decoded; |
347 uint32 video_frames_dropped; | 344 uint32 video_frames_dropped; |
348 int64 audio_memory_usage; | 345 int64 audio_memory_usage; |
349 int64 video_memory_usage; | 346 int64 video_memory_usage; |
350 }; | 347 }; |
OLD | NEW |