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

Side by Side Diff: media/gpu/ipc/client/gpu_jpeg_decode_accelerator_host.h

Issue 2905823002: Add Mojo interfaces for GpuJpegDecodeAccelerator and GpuJpegDecodeAcceleratorHost (Closed)
Patch Set: rebase Created 3 years, 6 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 | « media/gpu/ipc/client/BUILD.gn ('k') | media/gpu/ipc/service/BUILD.gn » ('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 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
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
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_
OLDNEW
« no previous file with comments | « media/gpu/ipc/client/BUILD.gn ('k') | media/gpu/ipc/service/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698