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> | 10 #include <memory> |
(...skipping 11 matching lines...) Expand all Loading... |
22 class GpuChannelHost; | 22 class GpuChannelHost; |
23 } | 23 } |
24 | 24 |
25 namespace IPC { | 25 namespace IPC { |
26 class Listener; | 26 class Listener; |
27 class Message; | 27 class Message; |
28 } | 28 } |
29 | 29 |
30 namespace media { | 30 namespace media { |
31 | 31 |
| 32 // TODO(c.padhi): Move GpuJpegDecodeAcceleratorHost to media/gpu/mojo, see |
| 33 // http://crbug.com/699255. |
32 // This class is used to talk to JpegDecodeAccelerator in the GPU process | 34 // This class is used to talk to JpegDecodeAccelerator in the GPU process |
33 // through IPC messages. | 35 // through IPC messages. |
34 class GpuJpegDecodeAcceleratorHost : public JpegDecodeAccelerator { | 36 class GpuJpegDecodeAcceleratorHost : public JpegDecodeAccelerator { |
35 public: | 37 public: |
36 GpuJpegDecodeAcceleratorHost( | 38 GpuJpegDecodeAcceleratorHost( |
37 scoped_refptr<gpu::GpuChannelHost> channel, | 39 scoped_refptr<gpu::GpuChannelHost> channel, |
38 int32_t route_id, | 40 int32_t route_id, |
39 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); | 41 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); |
40 ~GpuJpegDecodeAcceleratorHost() override; | 42 ~GpuJpegDecodeAcceleratorHost() override; |
41 | 43 |
(...skipping 23 matching lines...) Expand all Loading... |
65 std::unique_ptr<Receiver> receiver_; | 67 std::unique_ptr<Receiver> receiver_; |
66 | 68 |
67 SEQUENCE_CHECKER(sequence_checker_); | 69 SEQUENCE_CHECKER(sequence_checker_); |
68 | 70 |
69 DISALLOW_COPY_AND_ASSIGN(GpuJpegDecodeAcceleratorHost); | 71 DISALLOW_COPY_AND_ASSIGN(GpuJpegDecodeAcceleratorHost); |
70 }; | 72 }; |
71 | 73 |
72 } // namespace media | 74 } // namespace media |
73 | 75 |
74 #endif // MEDIA_GPU_IPC_CLIENT_GPU_JPEG_DECODE_ACCELERATOR_HOST_H_ | 76 #endif // MEDIA_GPU_IPC_CLIENT_GPU_JPEG_DECODE_ACCELERATOR_HOST_H_ |
OLD | NEW |