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

Side by Side Diff: media/gpu/ipc/service/media_gpu_channel.h

Issue 2923933004: [NotForReview] Move GJDAH and GJDA to media/gpu/mojo
Patch Set: . 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 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 #ifndef MEDIA_GPU_IPC_SERVICE_MEDIA_GPU_CHANNEL_H_ 5 #ifndef MEDIA_GPU_IPC_SERVICE_MEDIA_GPU_CHANNEL_H_
6 #define MEDIA_GPU_IPC_SERVICE_MEDIA_GPU_CHANNEL_H_ 6 #define MEDIA_GPU_IPC_SERVICE_MEDIA_GPU_CHANNEL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/unguessable_token.h" 10 #include "base/unguessable_token.h"
11 #include "ipc/ipc_listener.h" 11 #include "ipc/ipc_listener.h"
12 #include "ipc/ipc_sender.h" 12 #include "ipc/ipc_sender.h"
13 #include "media/base/android_overlay_mojo_factory.h" 13 #include "media/base/android_overlay_mojo_factory.h"
14 #include "media/gpu/ipc/service/gpu_jpeg_decode_accelerator.h"
15 #include "media/video/video_decode_accelerator.h" 14 #include "media/video/video_decode_accelerator.h"
16 15
17 namespace media { 16 namespace media {
18 struct CreateVideoEncoderParams; 17 struct CreateVideoEncoderParams;
19 } 18 }
20 19
21 namespace gpu { 20 namespace gpu {
22 class GpuChannel; 21 class GpuChannel;
23 } 22 }
24 23
(...skipping 12 matching lines...) Expand all
37 // IPC::Sender implementation: 36 // IPC::Sender implementation:
38 bool Send(IPC::Message* msg) override; 37 bool Send(IPC::Message* msg) override;
39 38
40 private: 39 private:
41 friend class MediaGpuChannelDispatchHelper; 40 friend class MediaGpuChannelDispatchHelper;
42 41
43 // IPC::Listener implementation: 42 // IPC::Listener implementation:
44 bool OnMessageReceived(const IPC::Message& message) override; 43 bool OnMessageReceived(const IPC::Message& message) override;
45 44
46 // Message handlers. 45 // Message handlers.
47 void OnCreateJpegDecoder(int32_t route_id, IPC::Message* reply_msg);
48 void OnCreateVideoDecoder(int32_t command_buffer_route_id, 46 void OnCreateVideoDecoder(int32_t command_buffer_route_id,
49 const VideoDecodeAccelerator::Config& config, 47 const VideoDecodeAccelerator::Config& config,
50 int32_t route_id, 48 int32_t route_id,
51 IPC::Message* reply_message); 49 IPC::Message* reply_message);
52 void OnCreateVideoEncoder(int32_t command_buffer_route_id, 50 void OnCreateVideoEncoder(int32_t command_buffer_route_id,
53 const CreateVideoEncoderParams& params, 51 const CreateVideoEncoderParams& params,
54 IPC::Message* reply_message); 52 IPC::Message* reply_message);
55 53
56 gpu::GpuChannel* const channel_; 54 gpu::GpuChannel* const channel_;
57 scoped_refptr<MediaGpuChannelFilter> filter_; 55 scoped_refptr<MediaGpuChannelFilter> filter_;
58 std::unique_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_;
59 AndroidOverlayMojoFactoryCB overlay_factory_cb_; 56 AndroidOverlayMojoFactoryCB overlay_factory_cb_;
60 57
61 DISALLOW_COPY_AND_ASSIGN(MediaGpuChannel); 58 DISALLOW_COPY_AND_ASSIGN(MediaGpuChannel);
62 }; 59 };
63 60
64 } // namespace media 61 } // namespace media
65 62
66 #endif // MEDIA_GPU_IPC_SERVICE_MEDIA_GPU_CHANNEL_H_ 63 #endif // MEDIA_GPU_IPC_SERVICE_MEDIA_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « media/gpu/ipc/service/gpu_jpeg_decode_accelerator_unittest.cc ('k') | media/gpu/ipc/service/media_gpu_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698