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; |
(...skipping 24 matching lines...) Expand all Loading... |
71 // |this|. | 71 // |this|. |
72 mojo::StrongBinding<::arc::mojom::VideoAcceleratorService> binding_; | 72 mojo::StrongBinding<::arc::mojom::VideoAcceleratorService> binding_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(GpuArcVideoService); | 74 DISALLOW_COPY_AND_ASSIGN(GpuArcVideoService); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace arc | 77 } // namespace arc |
78 } // namespace chromeos | 78 } // namespace chromeos |
79 | 79 |
80 #endif // CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_ | 80 #endif // CHROME_GPU_GPU_ARC_VIDEO_SERVICE_H_ |
OLD | NEW |