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

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

Issue 2526953003: Add MediaGpuChannelManager::LookupChannel(). (Closed)
Patch Set: Implement MockGpuVideoAcceleratorFactories::GetCommandBufferRouteId(). Created 3 years, 11 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
« no previous file with comments | « media/mojo/clients/mojo_video_decoder.cc ('k') | media/mojo/services/gpu_mojo_media_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "media/mojo/interfaces/media_types.mojom"; 7 import "media/mojo/interfaces/media_types.mojom";
8 import "mojo/common/unguessable_token.mojom";
9
10 // Identifies a GpuCommandBufferStub. MediaGpuChannelManager is responsible
11 // for minting |channel_token| objects.
12 struct CommandBufferId {
13 mojo.common.mojom.UnguessableToken channel_token;
14 int32 route_id;
15 };
8 16
9 interface VideoDecoder { 17 interface VideoDecoder {
10 // Initialize the decoder. This must be called before any other method. 18 // Initialize the decoder. This must be called before any other method.
11 // 19 //
20 // |command_buffer_id|, when present, identifies a GpuCommandBufferStub that
21 // the decoder can use for GL operations. Implementations that require GL will
22 // fail Initialize() if |command_buffer_id| is not provided.
23 //
12 // |decoder_buffer_pipe| will be used to transfer encoded data for each 24 // |decoder_buffer_pipe| will be used to transfer encoded data for each
13 // DecoderBuffer. 25 // DecoderBuffer.
14 // 26 //
15 // TODO(sandersd): Rename to Initialize() if/when 27 // TODO(sandersd): Rename to Initialize() if/when
16 // media::VideoDecoder::Initialize() is renamed to Configure(). 28 // media::VideoDecoder::Initialize() is renamed to Configure().
17 Construct(associated VideoDecoderClient client, 29 Construct(associated VideoDecoderClient client,
18 handle<data_pipe_consumer> decoder_buffer_pipe); 30 handle<data_pipe_consumer> decoder_buffer_pipe,
31 CommandBufferId? command_buffer_id);
19 32
20 // Configure (or reconfigure) the decoder. This must be called before decoding 33 // Configure (or reconfigure) the decoder. This must be called before decoding
21 // any frames, and must not be called while there are pending Initialize(), 34 // any frames, and must not be called while there are pending Initialize(),
22 // Decode(), or Reset() requests. 35 // Decode(), or Reset() requests.
23 // 36 //
24 // If |low_delay| is true, the decoder must output frames as soon as possible; 37 // If |low_delay| is true, the decoder must output frames as soon as possible;
25 // in particular, it must not wait for another Decode() request, except as 38 // in particular, it must not wait for another Decode() request, except as
26 // required for frame reordering. Implementations must fail initialization if 39 // required for frame reordering. Implementations must fail initialization if
27 // they cannot satisfy this requirement. 40 // they cannot satisfy this requirement.
28 // 41 //
(...skipping 22 matching lines...) Expand all
51 // Reset the decoder. All ongoing Decode() requests must be completed or 64 // Reset the decoder. All ongoing Decode() requests must be completed or
52 // aborted before executing the callback. This must not be called while there 65 // aborted before executing the callback. This must not be called while there
53 // is a pending Initialize() request. 66 // is a pending Initialize() request.
54 Reset() => (); 67 Reset() => ();
55 }; 68 };
56 69
57 interface VideoDecoderClient { 70 interface VideoDecoderClient {
58 // Output a decoded frame. Frames must be output in presentation order. 71 // Output a decoded frame. Frames must be output in presentation order.
59 OnVideoFrameDecoded(VideoFrame frame); 72 OnVideoFrameDecoded(VideoFrame frame);
60 }; 73 };
OLDNEW
« no previous file with comments | « media/mojo/clients/mojo_video_decoder.cc ('k') | media/mojo/services/gpu_mojo_media_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698