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

Unified Diff: media/mojo/services/mojo_video_decoder_service.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/services/mojo_video_decoder_service.h ('k') | media/renderers/gpu_video_accelerator_factories.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_video_decoder_service.cc
diff --git a/media/mojo/services/mojo_video_decoder_service.cc b/media/mojo/services/mojo_video_decoder_service.cc
index 7a94c575413c67f3552f8bf84f0800d20123844c..84b0308804deae8fd28ed50b4eaaf8a4772c2efb 100644
--- a/media/mojo/services/mojo_video_decoder_service.cc
+++ b/media/mojo/services/mojo_video_decoder_service.cc
@@ -31,15 +31,17 @@ MojoVideoDecoderService::~MojoVideoDecoderService() {}
void MojoVideoDecoderService::Construct(
mojom::VideoDecoderClientAssociatedPtrInfo client,
- mojo::ScopedDataPipeConsumerHandle decoder_buffer_pipe) {
+ mojo::ScopedDataPipeConsumerHandle decoder_buffer_pipe,
+ mojom::CommandBufferIdPtr command_buffer_id) {
DVLOG(1) << __func__;
+ // TODO(sandersd): Enter an error state.
if (decoder_)
return;
// TODO(sandersd): Provide callback for requesting a GpuCommandBufferStub.
decoder_ = mojo_media_client_->CreateVideoDecoder(
- base::ThreadTaskRunnerHandle::Get());
+ base::ThreadTaskRunnerHandle::Get(), std::move(command_buffer_id));
client_.Bind(std::move(client));
« no previous file with comments | « media/mojo/services/mojo_video_decoder_service.h ('k') | media/renderers/gpu_video_accelerator_factories.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698