| 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_GPU_ARC_VIDEO_SERVICE_H_ | 5 #ifndef CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_ |
| 6 #define CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_ | 6 #define CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/files/scoped_file.h" | 10 #include "base/files/scoped_file.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public: | 26 public: |
| 27 GpuArcVideoService(); | 27 GpuArcVideoService(); |
| 28 ~GpuArcVideoService() override; | 28 ~GpuArcVideoService() override; |
| 29 | 29 |
| 30 // Connects to VideoAcceleratorServiceClient. | 30 // Connects to VideoAcceleratorServiceClient. |
| 31 // |request| specified the message pipe of client to use. | 31 // |request| specified the message pipe of client to use. |
| 32 void Connect(::arc::mojom::VideoAcceleratorServiceClientRequest request); | 32 void Connect(::arc::mojom::VideoAcceleratorServiceClientRequest request); |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 // ArcVideoAccelerator::Client implementation. | 35 // ArcVideoAccelerator::Client implementation. |
| 36 void OnError(ArcVideoAccelerator::Error error) override; | 36 void OnError(ArcVideoAccelerator::Result error) override; |
| 37 void OnBufferDone(PortType port, | 37 void OnBufferDone(PortType port, |
| 38 uint32_t index, | 38 uint32_t index, |
| 39 const BufferMetadata& metadata) override; | 39 const BufferMetadata& metadata) override; |
| 40 void OnFlushDone() override; | 40 void OnFlushDone() override; |
| 41 void OnResetDone() override; | 41 void OnResetDone() override; |
| 42 void OnOutputFormatChanged(const VideoFormat& format) override; | 42 void OnOutputFormatChanged(const VideoFormat& format) override; |
| 43 | 43 |
| 44 // ::arc::mojom::VideoAcceleratorService implementation. | 44 // ::arc::mojom::VideoAcceleratorService implementation. |
| 45 void Initialize(::arc::mojom::ArcVideoAcceleratorConfigPtr config, | 45 void Initialize(::arc::mojom::ArcVideoAcceleratorConfigPtr config, |
| 46 const InitializeCallback& callback) override; | 46 const InitializeCallback& callback) override; |
| 47 void DeprecatedInitialize( |
| 48 ::arc::mojom::ArcVideoAcceleratorConfigPtr config, |
| 49 const DeprecatedInitializeCallback& callback) override; |
| 47 void BindSharedMemory(::arc::mojom::PortType port, | 50 void BindSharedMemory(::arc::mojom::PortType port, |
| 48 uint32_t index, | 51 uint32_t index, |
| 49 mojo::ScopedHandle ashmem_handle, | 52 mojo::ScopedHandle ashmem_handle, |
| 50 uint32_t offset, | 53 uint32_t offset, |
| 51 uint32_t length) override; | 54 uint32_t length) override; |
| 52 void BindDmabuf(::arc::mojom::PortType port, | 55 void BindDmabuf(::arc::mojom::PortType port, |
| 53 uint32_t index, | 56 uint32_t index, |
| 54 mojo::ScopedHandle dmabuf_handle, | 57 mojo::ScopedHandle dmabuf_handle, |
| 55 int32_t stride) override; | 58 int32_t stride) override; |
| 56 void UseBuffer(::arc::mojom::PortType port, | 59 void UseBuffer(::arc::mojom::PortType port, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 71 // |this|. | 74 // |this|. |
| 72 mojo::StrongBinding<::arc::mojom::VideoAcceleratorService> binding_; | 75 mojo::StrongBinding<::arc::mojom::VideoAcceleratorService> binding_; |
| 73 | 76 |
| 74 DISALLOW_COPY_AND_ASSIGN(GpuArcVideoService); | 77 DISALLOW_COPY_AND_ASSIGN(GpuArcVideoService); |
| 75 }; | 78 }; |
| 76 | 79 |
| 77 } // namespace arc | 80 } // namespace arc |
| 78 } // namespace chromeos | 81 } // namespace chromeos |
| 79 | 82 |
| 80 #endif // CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_ | 83 #endif // CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_ |
| OLD | NEW |