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

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

Issue 1882373004: Migrate content/common/gpu/media code to media/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix several more bot-identified build issues 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
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 "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/synchronization/waitable_event.h" 13 #include "base/synchronization/waitable_event.h"
14 #include "base/threading/non_thread_safe.h" 14 #include "base/threading/non_thread_safe.h"
15 #include "ipc/ipc_listener.h" 15 #include "ipc/ipc_listener.h"
16 #include "ipc/ipc_sender.h" 16 #include "ipc/ipc_sender.h"
17 #include "media/video/jpeg_decode_accelerator.h" 17 #include "media/video/jpeg_decode_accelerator.h"
18 18
19 namespace base { 19 namespace base {
20 class SingleThreadTaskRunner; 20 class SingleThreadTaskRunner;
21 } 21 }
22 22
23 namespace gpu { 23 namespace gpu {
24 class GpuChannel; 24 class GpuChannel;
25 } 25 }
26 26
27 namespace content { 27 namespace media {
28 class GpuJpegDecodeAccelerator 28 class GpuJpegDecodeAccelerator
29 : public IPC::Sender, 29 : public IPC::Sender,
30 public base::NonThreadSafe, 30 public base::NonThreadSafe,
31 public base::SupportsWeakPtr<GpuJpegDecodeAccelerator> { 31 public base::SupportsWeakPtr<GpuJpegDecodeAccelerator> {
32 public: 32 public:
33 // |channel| must outlive this object. 33 // |channel| must outlive this object.
34 GpuJpegDecodeAccelerator( 34 GpuJpegDecodeAccelerator(
35 gpu::GpuChannel* channel, 35 gpu::GpuChannel* channel,
36 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); 36 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner);
37 ~GpuJpegDecodeAccelerator() override; 37 ~GpuJpegDecodeAccelerator() override;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // GPU IO task runner. 77 // GPU IO task runner.
78 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 78 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
79 79
80 // Number of clients added to |filter_|. 80 // Number of clients added to |filter_|.
81 int client_number_; 81 int client_number_;
82 82
83 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuJpegDecodeAccelerator); 83 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuJpegDecodeAccelerator);
84 }; 84 };
85 85
86 } // namespace content 86 } // namespace media
87 87
88 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_JPEG_DECODE_ACCELERATOR_H_ 88 #endif // MEDIA_GPU_IPC_SERVICE_GPU_JPEG_DECODE_ACCELERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698