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

Side by Side Diff: media/gpu/ipc/service/gpu_jpeg_decode_accelerator.h

Issue 1939683002: Test X11 header pollution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/service/BUILD.gn ('k') | media/gpu/ipc/service/gpu_jpeg_decode_accelerator.cc » ('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 CONTENT_COMMON_GPU_MEDIA_GPU_JPEG_DECODE_ACCELERATOR_H_ 5 #ifndef MEDIA_GPU_IPC_SERVICE_GPU_JPEG_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_GPU_JPEG_DECODE_ACCELERATOR_H_ 6 #define MEDIA_GPU_IPC_SERVICE_GPU_JPEG_DECODE_ACCELERATOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/synchronization/waitable_event.h" 15 #include "base/synchronization/waitable_event.h"
16 #include "base/threading/non_thread_safe.h" 16 #include "base/threading/non_thread_safe.h"
17 #include "ipc/ipc_listener.h" 17 #include "ipc/ipc_listener.h"
18 #include "ipc/ipc_sender.h" 18 #include "ipc/ipc_sender.h"
19 #include "media/video/jpeg_decode_accelerator.h" 19 #include "media/video/jpeg_decode_accelerator.h"
20 20
21 namespace base { 21 namespace base {
22 class SingleThreadTaskRunner; 22 class SingleThreadTaskRunner;
23 } 23 }
24 24
25 namespace gpu { 25 namespace gpu {
26 class GpuChannel; 26 class GpuChannel;
27 } 27 }
28 28
29 namespace content { 29 namespace media {
30 class GpuJpegDecodeAccelerator 30 class GpuJpegDecodeAccelerator
31 : public IPC::Sender, 31 : public IPC::Sender,
32 public base::NonThreadSafe, 32 public base::NonThreadSafe,
33 public base::SupportsWeakPtr<GpuJpegDecodeAccelerator> { 33 public base::SupportsWeakPtr<GpuJpegDecodeAccelerator> {
34 public: 34 public:
35 // |channel| must outlive this object. 35 // |channel| must outlive this object.
36 GpuJpegDecodeAccelerator( 36 GpuJpegDecodeAccelerator(
37 gpu::GpuChannel* channel, 37 gpu::GpuChannel* channel,
38 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); 38 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
39 ~GpuJpegDecodeAccelerator() override; 39 ~GpuJpegDecodeAccelerator() override;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 // GPU IO task runner. 79 // GPU IO task runner.
80 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 80 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
81 81
82 // Number of clients added to |filter_|. 82 // Number of clients added to |filter_|.
83 int client_number_; 83 int client_number_;
84 84
85 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuJpegDecodeAccelerator); 85 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuJpegDecodeAccelerator);
86 }; 86 };
87 87
88 } // namespace content 88 } // namespace media
89 89
90 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_JPEG_DECODE_ACCELERATOR_H_ 90 #endif // MEDIA_GPU_IPC_SERVICE_GPU_JPEG_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/gpu/ipc/service/BUILD.gn ('k') | media/gpu/ipc/service/gpu_jpeg_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698