| 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 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 Loading... |
| 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_ |
| OLD | NEW |