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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 void BindDmabuf(PortType port, | 43 void BindDmabuf(PortType port, |
44 uint32_t index, | 44 uint32_t index, |
45 base::ScopedFD dmabuf_fd) override; | 45 base::ScopedFD dmabuf_fd) override; |
46 void UseBuffer(PortType port, | 46 void UseBuffer(PortType port, |
47 uint32_t index, | 47 uint32_t index, |
48 const BufferMetadata& metadata) override; | 48 const BufferMetadata& metadata) override; |
49 void Reset() override; | 49 void Reset() override; |
50 | 50 |
51 // Implementation of the VideoDecodeAccelerator::Client interface. | 51 // Implementation of the VideoDecodeAccelerator::Client interface. |
52 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, | 52 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, |
| 53 media::VideoPixelFormat output_format, |
53 uint32_t textures_per_buffer, | 54 uint32_t textures_per_buffer, |
54 const gfx::Size& dimensions, | 55 const gfx::Size& dimensions, |
55 uint32_t texture_target) override; | 56 uint32_t texture_target) override; |
56 void DismissPictureBuffer(int32_t picture_buffer) override; | 57 void DismissPictureBuffer(int32_t picture_buffer) override; |
57 void PictureReady(const media::Picture& picture) override; | 58 void PictureReady(const media::Picture& picture) override; |
58 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; | 59 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; |
59 void NotifyFlushDone() override; | 60 void NotifyFlushDone() override; |
60 void NotifyResetDone() override; | 61 void NotifyResetDone() override; |
61 void NotifyError(media::VideoDecodeAccelerator::Error error) override; | 62 void NotifyError(media::VideoDecodeAccelerator::Error error) override; |
62 | 63 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 144 |
144 gpu::GpuPreferences gpu_preferences_; | 145 gpu::GpuPreferences gpu_preferences_; |
145 | 146 |
146 DISALLOW_COPY_AND_ASSIGN(ArcGpuVideoDecodeAccelerator); | 147 DISALLOW_COPY_AND_ASSIGN(ArcGpuVideoDecodeAccelerator); |
147 }; | 148 }; |
148 | 149 |
149 } // namespace arc | 150 } // namespace arc |
150 } // namespace chromeos | 151 } // namespace chromeos |
151 | 152 |
152 #endif // CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 153 #endif // CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |