Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 public base::SupportsWeakPtr<ArcGpuVideoDecodeAccelerator> { | 29 public base::SupportsWeakPtr<ArcGpuVideoDecodeAccelerator> { |
| 30 public: | 30 public: |
| 31 explicit ArcGpuVideoDecodeAccelerator( | 31 explicit ArcGpuVideoDecodeAccelerator( |
| 32 const gpu::GpuPreferences& gpu_preferences); | 32 const gpu::GpuPreferences& gpu_preferences); |
| 33 ~ArcGpuVideoDecodeAccelerator() override; | 33 ~ArcGpuVideoDecodeAccelerator() override; |
| 34 | 34 |
| 35 // Implementation of the ArcVideoAccelerator interface. | 35 // Implementation of the ArcVideoAccelerator interface. |
| 36 ArcVideoAccelerator::Result Initialize( | 36 ArcVideoAccelerator::Result Initialize( |
| 37 const Config& config, | 37 const Config& config, |
| 38 ArcVideoAccelerator::Client* client) override; | 38 ArcVideoAccelerator::Client* client) override; |
| 39 ArcVideoAccelerator::Result InitializeTask( | |
|
Owen Lin
2016/11/17 08:28:28
Put in private.
johnylin1
2016/11/18 03:26:32
Done.
| |
| 40 const Config& config, | |
| 41 ArcVideoAccelerator::Client* client); | |
| 39 void SetNumberOfOutputBuffers(size_t number) override; | 42 void SetNumberOfOutputBuffers(size_t number) override; |
| 40 void BindSharedMemory(PortType port, | 43 void BindSharedMemory(PortType port, |
| 41 uint32_t index, | 44 uint32_t index, |
| 42 base::ScopedFD ashmem_fd, | 45 base::ScopedFD ashmem_fd, |
| 43 off_t offset, | 46 off_t offset, |
| 44 size_t length) override; | 47 size_t length) override; |
| 45 void BindDmabuf(PortType port, | 48 void BindDmabuf(PortType port, |
| 46 uint32_t index, | 49 uint32_t index, |
| 47 base::ScopedFD dmabuf_fd, | 50 base::ScopedFD dmabuf_fd, |
| 48 const std::vector<DmabufPlane>& dmabuf_planes) override; | 51 const std::vector<DmabufPlane>& dmabuf_planes) override; |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 165 | 168 |
| 166 gpu::GpuPreferences gpu_preferences_; | 169 gpu::GpuPreferences gpu_preferences_; |
| 167 | 170 |
| 168 DISALLOW_COPY_AND_ASSIGN(ArcGpuVideoDecodeAccelerator); | 171 DISALLOW_COPY_AND_ASSIGN(ArcGpuVideoDecodeAccelerator); |
| 169 }; | 172 }; |
| 170 | 173 |
| 171 } // namespace arc | 174 } // namespace arc |
| 172 } // namespace chromeos | 175 } // namespace chromeos |
| 173 | 176 |
| 174 #endif // CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 177 #endif // CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |