OLD | NEW |
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 #ifndef MEDIA_GPU_IPC_CLIENT_GPU_JPEG_DECODE_ACCELERATOR_HOST_H_ | 5 #ifndef MEDIA_GPU_IPC_CLIENT_GPU_JPEG_DECODE_ACCELERATOR_HOST_H_ |
6 #define MEDIA_GPU_IPC_CLIENT_GPU_JPEG_DECODE_ACCELERATOR_HOST_H_ | 6 #define MEDIA_GPU_IPC_CLIENT_GPU_JPEG_DECODE_ACCELERATOR_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
| 10 #include <memory> |
| 11 |
10 #include "base/macros.h" | 12 #include "base/macros.h" |
11 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
12 #include "base/threading/non_thread_safe.h" | 14 #include "base/threading/non_thread_safe.h" |
13 #include "media/video/jpeg_decode_accelerator.h" | 15 #include "media/video/jpeg_decode_accelerator.h" |
14 | 16 |
15 namespace base { | 17 namespace base { |
16 class SingleThreadTaskRunner; | 18 class SingleThreadTaskRunner; |
17 } | 19 } |
18 | 20 |
19 namespace gpu { | 21 namespace gpu { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // Unowned reference to the GpuChannelHost to send IPC messages to the GPU | 61 // Unowned reference to the GpuChannelHost to send IPC messages to the GPU |
60 // process. | 62 // process. |
61 gpu::GpuChannelHost* channel_; | 63 gpu::GpuChannelHost* channel_; |
62 | 64 |
63 // Route ID for the associated decoder in the GPU process. | 65 // Route ID for the associated decoder in the GPU process. |
64 int32_t decoder_route_id_; | 66 int32_t decoder_route_id_; |
65 | 67 |
66 // GPU IO task runner. | 68 // GPU IO task runner. |
67 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 69 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
68 | 70 |
69 scoped_ptr<Receiver> receiver_; | 71 std::unique_ptr<Receiver> receiver_; |
70 | 72 |
71 DISALLOW_COPY_AND_ASSIGN(GpuJpegDecodeAcceleratorHost); | 73 DISALLOW_COPY_AND_ASSIGN(GpuJpegDecodeAcceleratorHost); |
72 }; | 74 }; |
73 | 75 |
74 } // namespace media | 76 } // namespace media |
75 | 77 |
76 #endif // MEDIA_GPU_IPC_CLIENT_GPU_JPEG_DECODE_ACCELERATOR_HOST_H_ | 78 #endif // MEDIA_GPU_IPC_CLIENT_GPU_JPEG_DECODE_ACCELERATOR_HOST_H_ |
OLD | NEW |