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

Side by Side Diff: media/mojo/interfaces/media_types.mojom

Issue 2908303003: media: Create Mojo StructTraits for VideoFrame (Closed)
Patch Set: Code formatting. Created 3 years, 6 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 unified diff | Download patch
OLDNEW
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
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.
dcheng 2017/06/05 20:33:01 Ideally, we'd just define the constant in mojom, b
sandersd (OOO until July 31) 2017/06/05 20:46:13 That's correct; //media is not allowed to depend o
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698