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

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

Issue 2870333003: gpu: Remove gpu channel filter and queue from header. (Closed)
Patch Set: rebase Created 3 years, 7 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 | « gpu/ipc/service/gpu_channel_test_common.cc ('k') | media/gpu/ipc/service/media_gpu_channel.cc » ('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 #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" 14 #include "media/gpu/ipc/service/gpu_jpeg_decode_accelerator.h"
15 #include "media/video/video_decode_accelerator.h" 15 #include "media/video/video_decode_accelerator.h"
16 16
17 namespace media { 17 namespace media {
18 struct CreateVideoEncoderParams; 18 struct CreateVideoEncoderParams;
19 } 19 }
20 20
21 namespace gpu { 21 namespace gpu {
22 class GpuChannel; 22 class GpuChannel;
23 } 23 }
24 24
25 namespace media { 25 namespace media {
26 26
27 class MediaGpuChannelDispatchHelper; 27 class MediaGpuChannelDispatchHelper;
28 class MediaGpuChannelFilter;
28 29
29 class MediaGpuChannel : public IPC::Listener, public IPC::Sender { 30 class MediaGpuChannel : public IPC::Listener, public IPC::Sender {
30 public: 31 public:
31 MediaGpuChannel(gpu::GpuChannel* channel, 32 MediaGpuChannel(gpu::GpuChannel* channel,
32 const base::UnguessableToken& channel_token, 33 const base::UnguessableToken& channel_token,
33 const AndroidOverlayMojoFactoryCB& overlay_factory_cb); 34 const AndroidOverlayMojoFactoryCB& overlay_factory_cb);
34 ~MediaGpuChannel() override; 35 ~MediaGpuChannel() override;
35 36
36 // IPC::Sender implementation: 37 // IPC::Sender implementation:
37 bool Send(IPC::Message* msg) override; 38 bool Send(IPC::Message* msg) override;
38 39
39 private: 40 private:
40 friend class MediaGpuChannelDispatchHelper; 41 friend class MediaGpuChannelDispatchHelper;
41 42
42 // IPC::Listener implementation: 43 // IPC::Listener implementation:
43 bool OnMessageReceived(const IPC::Message& message) override; 44 bool OnMessageReceived(const IPC::Message& message) override;
44 45
45 // Message handlers. 46 // Message handlers.
46 void OnCreateJpegDecoder(int32_t route_id, IPC::Message* reply_msg); 47 void OnCreateJpegDecoder(int32_t route_id, IPC::Message* reply_msg);
47 void OnCreateVideoDecoder(int32_t command_buffer_route_id, 48 void OnCreateVideoDecoder(int32_t command_buffer_route_id,
48 const VideoDecodeAccelerator::Config& config, 49 const VideoDecodeAccelerator::Config& config,
49 int32_t route_id, 50 int32_t route_id,
50 IPC::Message* reply_message); 51 IPC::Message* reply_message);
51 void OnCreateVideoEncoder(int32_t command_buffer_route_id, 52 void OnCreateVideoEncoder(int32_t command_buffer_route_id,
52 const CreateVideoEncoderParams& params, 53 const CreateVideoEncoderParams& params,
53 IPC::Message* reply_message); 54 IPC::Message* reply_message);
54 55
55 gpu::GpuChannel* const channel_; 56 gpu::GpuChannel* const channel_;
56 base::UnguessableToken channel_token_; 57 scoped_refptr<MediaGpuChannelFilter> filter_;
57 std::unique_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_; 58 std::unique_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_;
58 AndroidOverlayMojoFactoryCB overlay_factory_cb_; 59 AndroidOverlayMojoFactoryCB overlay_factory_cb_;
60
59 DISALLOW_COPY_AND_ASSIGN(MediaGpuChannel); 61 DISALLOW_COPY_AND_ASSIGN(MediaGpuChannel);
60 }; 62 };
61 63
62 } // namespace media 64 } // namespace media
63 65
64 #endif // MEDIA_GPU_IPC_SERVICE_MEDIA_GPU_CHANNEL_H_ 66 #endif // MEDIA_GPU_IPC_SERVICE_MEDIA_GPU_CHANNEL_H_
OLDNEW
« no previous file with comments | « gpu/ipc/service/gpu_channel_test_common.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