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

Side by Side Diff: content/common/gpu/media/media_channel.h

Issue 1736643005: Decouple Media Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another try to fix Windows 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_COMMON_GPU_MEDIA_MEDIA_CHANNEL_H_
6 #define CONTENT_COMMON_GPU_MEDIA_MEDIA_CHANNEL_H_
7
8 #include "content/common/gpu/media/gpu_jpeg_decode_accelerator.h"
9 #include "ipc/ipc_listener.h"
10 #include "ipc/ipc_sender.h"
11 #include "media/video/video_decode_accelerator.h"
12
13 namespace content {
14
15 class GpuChannel;
16 class GpuCommandBufferStub;
17
18 class MediaChannel : public IPC::Listener, public IPC::Sender {
19 public:
20 explicit MediaChannel(GpuChannel* channel);
21 ~MediaChannel() override;
22
23 // IPC::Sender implementation:
24 bool Send(IPC::Message* msg) override;
25
26 private:
27 // IPC::Listener implementation:
28 bool OnMessageReceived(const IPC::Message& message) override;
29
30 // Message handlers.
31 void OnCreateJpegDecoder(GpuCommandBufferStub* stub,
32 int32_t route_id,
33 IPC::Message* reply_msg);
34 void OnCreateVideoDecoder(GpuCommandBufferStub* stub,
35 const media::VideoDecodeAccelerator::Config& config,
36 int32_t route_id,
37 IPC::Message* reply_message);
38 void OnCreateVideoEncoder(GpuCommandBufferStub* stub,
39 media::VideoPixelFormat input_format,
40 const gfx::Size& input_visible_size,
41 media::VideoCodecProfile output_profile,
42 uint32_t initial_bitrate,
43 int32_t route_id,
44 IPC::Message* reply_message);
45
46 GpuChannel* const channel_;
47 scoped_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_;
48 DISALLOW_COPY_AND_ASSIGN(MediaChannel);
49 };
50
51 } // namespace content
52
53 #endif // CONTENT_COMMON_GPU_MEDIA_MEDIA_CHANNEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698