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