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 "gpu/ipc/common/mailbox_holder.mojom"; | 7 import "gpu/ipc/common/mailbox_holder.mojom"; |
8 import "mojo/common/time.mojom"; | 8 import "mojo/common/time.mojom"; |
9 import "ui/gfx/geometry/mojo/geometry.mojom"; | 9 import "ui/gfx/geometry/mojo/geometry.mojom"; |
10 | 10 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 int32 y_stride; | 240 int32 y_stride; |
241 int32 u_stride; | 241 int32 u_stride; |
242 int32 v_stride; | 242 int32 v_stride; |
243 uint64 y_offset; | 243 uint64 y_offset; |
244 uint64 u_offset; | 244 uint64 u_offset; |
245 uint64 v_offset; | 245 uint64 v_offset; |
246 }; | 246 }; |
247 | 247 |
248 // This defines video frame data stored in texture mailboxes. | 248 // This defines video frame data stored in texture mailboxes. |
249 struct MailboxVideoFrameData { | 249 struct MailboxVideoFrameData { |
250 array<gpu.mojom.MailboxHolder> mailbox_holder; | 250 // Size must be kept in sync with media::VideoFrame::kMaxPlanes. |
| 251 array<gpu.mojom.MailboxHolder, 4> mailbox_holder; |
251 }; | 252 }; |
252 | 253 |
253 struct PipelineStatistics { | 254 struct PipelineStatistics { |
254 uint64 audio_bytes_decoded; | 255 uint64 audio_bytes_decoded; |
255 uint64 video_bytes_decoded; | 256 uint64 video_bytes_decoded; |
256 uint32 video_frames_decoded; | 257 uint32 video_frames_decoded; |
257 uint32 video_frames_dropped; | 258 uint32 video_frames_dropped; |
258 int64 audio_memory_usage; | 259 int64 audio_memory_usage; |
259 int64 video_memory_usage; | 260 int64 video_memory_usage; |
260 }; | 261 }; |
OLD | NEW |