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, | |
56 uint32_t textures_per_buffer, | 55 uint32_t textures_per_buffer, |
57 const gfx::Size& dimensions, | 56 const gfx::Size& dimensions, |
58 uint32_t texture_target) override; | 57 uint32_t texture_target) override; |
59 void DismissPictureBuffer(int32_t picture_buffer) override; | 58 void DismissPictureBuffer(int32_t picture_buffer) override; |
60 void PictureReady(const media::Picture& picture) override; | 59 void PictureReady(const media::Picture& picture) override; |
61 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; | 60 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; |
62 void NotifyFlushDone() override; | 61 void NotifyFlushDone() override; |
63 void NotifyResetDone() override; | 62 void NotifyResetDone() override; |
64 void NotifyError(media::VideoDecodeAccelerator::Error error) override; | 63 void NotifyError(media::VideoDecodeAccelerator::Error error) override; |
65 | 64 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 148 |
150 gpu::GpuPreferences gpu_preferences_; | 149 gpu::GpuPreferences gpu_preferences_; |
151 | 150 |
152 DISALLOW_COPY_AND_ASSIGN(ArcGpuVideoDecodeAccelerator); | 151 DISALLOW_COPY_AND_ASSIGN(ArcGpuVideoDecodeAccelerator); |
153 }; | 152 }; |
154 | 153 |
155 } // namespace arc | 154 } // namespace arc |
156 } // namespace chromeos | 155 } // namespace chromeos |
157 | 156 |
158 #endif // CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 157 #endif // CHROME_GPU_ARC_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |