| OLD | NEW |
| 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 "ipc/ipc_listener.h" | 10 #include "ipc/ipc_listener.h" |
| 11 #include "ipc/ipc_sender.h" | 11 #include "ipc/ipc_sender.h" |
| 12 #include "media/gpu/ipc/service/gpu_jpeg_decode_accelerator.h" | 12 #include "media/gpu/ipc/service/gpu_jpeg_decode_accelerator.h" |
| 13 #include "media/video/video_decode_accelerator.h" | 13 #include "media/video/video_decode_accelerator.h" |
| 14 | 14 |
| 15 namespace media { | 15 namespace media { |
| 16 struct CreateVideoEncoderParams; | 16 struct CreateVideoEncoderParams; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace gpu { | 19 namespace gpu { |
| 20 class GpuChannel; | 20 class GpuChannel; |
| 21 class GpuCommandBufferStub; | |
| 22 } | 21 } |
| 23 | 22 |
| 24 namespace media { | 23 namespace media { |
| 25 | 24 |
| 26 class MediaGpuChannelDispatchHelper; | 25 class MediaGpuChannelDispatchHelper; |
| 27 | 26 |
| 28 class MediaGpuChannel : public IPC::Listener, public IPC::Sender { | 27 class MediaGpuChannel : public IPC::Listener, public IPC::Sender { |
| 29 public: | 28 public: |
| 30 explicit MediaGpuChannel(gpu::GpuChannel* channel); | 29 explicit MediaGpuChannel(gpu::GpuChannel* channel); |
| 31 ~MediaGpuChannel() override; | 30 ~MediaGpuChannel() override; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 50 IPC::Message* reply_message); | 49 IPC::Message* reply_message); |
| 51 | 50 |
| 52 gpu::GpuChannel* const channel_; | 51 gpu::GpuChannel* const channel_; |
| 53 std::unique_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_; | 52 std::unique_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_; |
| 54 DISALLOW_COPY_AND_ASSIGN(MediaGpuChannel); | 53 DISALLOW_COPY_AND_ASSIGN(MediaGpuChannel); |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 } // namespace media | 56 } // namespace media |
| 58 | 57 |
| 59 #endif // MEDIA_GPU_IPC_SERVICE_MEDIA_GPU_CHANNEL_H_ | 58 #endif // MEDIA_GPU_IPC_SERVICE_MEDIA_GPU_CHANNEL_H_ |
| OLD | NEW |