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

Side by Side Diff: content/common/gpu/client/gpu_video_decode_accelerator_host.cc

Issue 1736643005: Decouple Media Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nit + fixed compile issue Created 4 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h" 5 #include "content/common/gpu/client/gpu_video_decode_accelerator_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/thread_task_runner_handle.h"
10 #include "build/build_config.h" 11 #include "build/build_config.h"
11 #include "base/thread_task_runner_handle.h" 12 #include "base/thread_task_runner_handle.h"
12 #include "content/common/gpu/client/gpu_channel_host.h" 13 #include "content/common/gpu/client/gpu_channel_host.h"
13 #include "content/common/gpu/media_messages.h" 14 #include "content/common/gpu/media/media_messages.h"
14 #include "ipc/ipc_message_macros.h" 15 #include "ipc/ipc_message_macros.h"
15 #include "ipc/ipc_message_utils.h" 16 #include "ipc/ipc_message_utils.h"
16 17
17 using media::VideoDecodeAccelerator; 18 using media::VideoDecodeAccelerator;
18 namespace content { 19 namespace content {
19 20
20 GpuVideoDecodeAcceleratorHost::GpuVideoDecodeAcceleratorHost( 21 GpuVideoDecodeAcceleratorHost::GpuVideoDecodeAcceleratorHost(
21 GpuChannelHost* channel, 22 GpuChannelHost* channel,
22 CommandBufferProxyImpl* impl) 23 CommandBufferProxyImpl* impl)
23 : channel_(channel), 24 : channel_(channel),
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 weak_this_factory_.InvalidateWeakPtrs(); 272 weak_this_factory_.InvalidateWeakPtrs();
272 273
273 // Client::NotifyError() may Destroy() |this|, so calling it needs to be the 274 // Client::NotifyError() may Destroy() |this|, so calling it needs to be the
274 // last thing done on this stack! 275 // last thing done on this stack!
275 media::VideoDecodeAccelerator::Client* client = NULL; 276 media::VideoDecodeAccelerator::Client* client = NULL;
276 std::swap(client, client_); 277 std::swap(client, client_);
277 client->NotifyError(static_cast<media::VideoDecodeAccelerator::Error>(error)); 278 client->NotifyError(static_cast<media::VideoDecodeAccelerator::Error>(error));
278 } 279 }
279 280
280 } // namespace content 281 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698