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

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

Issue 1859703002: convert //gpu to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 4 years, 8 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 | « gpu/vulkan/vulkan_swap_chain.cc ('k') | no next file » | 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>
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
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_
OLDNEW
« no previous file with comments | « gpu/vulkan/vulkan_swap_chain.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698