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

Side by Side Diff: content/common/gpu/client/gpu_jpeg_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_jpeg_decode_accelerator_host.h" 5 #include "content/common/gpu/client/gpu_jpeg_decode_accelerator_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/shared_memory_handle.h" 12 #include "base/memory/shared_memory_handle.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "base/synchronization/waitable_event.h" 14 #include "base/synchronization/waitable_event.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "content/common/gpu/client/gpu_channel_host.h" 16 #include "content/common/gpu/client/gpu_channel_host.h"
17 #include "content/common/gpu/gpu_messages.h" 17 #include "content/common/gpu/media/media_messages.h"
18 #include "content/common/gpu/media_messages.h"
19 #include "ipc/ipc_listener.h" 18 #include "ipc/ipc_listener.h"
20 #include "ipc/ipc_message_macros.h" 19 #include "ipc/ipc_message_macros.h"
21 #include "ipc/ipc_message_utils.h" 20 #include "ipc/ipc_message_utils.h"
22 21
23 namespace content { 22 namespace content {
24 23
25 // Class to receive AcceleratedJpegDecoderHostMsg_DecodeAck IPC message on IO 24 // Class to receive AcceleratedJpegDecoderHostMsg_DecodeAck IPC message on IO
26 // thread. This does very similar what MessageFilter usually does. It is not 25 // thread. This does very similar what MessageFilter usually does. It is not
27 // MessageFilter because GpuChannelHost doesn't support AddFilter. 26 // MessageFilter because GpuChannelHost doesn't support AddFilter.
28 class GpuJpegDecodeAcceleratorHost::Receiver : public IPC::Listener, 27 class GpuJpegDecodeAcceleratorHost::Receiver : public IPC::Listener,
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 if (!channel_->Send(message)) { 194 if (!channel_->Send(message)) {
196 DLOG(ERROR) << "Send(" << message->type() << ") failed"; 195 DLOG(ERROR) << "Send(" << message->type() << ") failed";
197 } 196 }
198 } 197 }
199 198
200 base::WeakPtr<IPC::Listener> GpuJpegDecodeAcceleratorHost::GetReceiver() { 199 base::WeakPtr<IPC::Listener> GpuJpegDecodeAcceleratorHost::GetReceiver() {
201 return receiver_->AsWeakPtrForIO(); 200 return receiver_->AsWeakPtrForIO();
202 } 201 }
203 202
204 } // namespace content 203 } // namespace content
OLDNEW
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/gpu/client/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698