OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 // capabilities will not contain duplicate supported profile entries. | 50 // capabilities will not contain duplicate supported profile entries. |
51 static gpu::VideoDecodeAcceleratorCapabilities GetCapabilities( | 51 static gpu::VideoDecodeAcceleratorCapabilities GetCapabilities( |
52 const gpu::GpuPreferences& gpu_preferences); | 52 const gpu::GpuPreferences& gpu_preferences); |
53 | 53 |
54 // IPC::Listener implementation. | 54 // IPC::Listener implementation. |
55 bool OnMessageReceived(const IPC::Message& message) override; | 55 bool OnMessageReceived(const IPC::Message& message) override; |
56 | 56 |
57 // media::VideoDecodeAccelerator::Client implementation. | 57 // media::VideoDecodeAccelerator::Client implementation. |
58 void NotifyInitializationComplete(bool success) override; | 58 void NotifyInitializationComplete(bool success) override; |
59 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, | 59 void ProvidePictureBuffers(uint32_t requested_num_of_buffers, |
| 60 VideoPixelFormat format, |
60 uint32_t textures_per_buffer, | 61 uint32_t textures_per_buffer, |
61 const gfx::Size& dimensions, | 62 const gfx::Size& dimensions, |
62 uint32_t texture_target) override; | 63 uint32_t texture_target) override; |
63 void DismissPictureBuffer(int32_t picture_buffer_id) override; | 64 void DismissPictureBuffer(int32_t picture_buffer_id) override; |
64 void PictureReady(const media::Picture& picture) override; | 65 void PictureReady(const media::Picture& picture) override; |
65 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; | 66 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; |
66 void NotifyFlushDone() override; | 67 void NotifyFlushDone() override; |
67 void NotifyResetDone() override; | 68 void NotifyResetDone() override; |
68 void NotifyError(media::VideoDecodeAccelerator::Error error) override; | 69 void NotifyError(media::VideoDecodeAccelerator::Error error) override; |
69 | 70 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // cleared. | 161 // cleared. |
161 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> | 162 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> |
162 uncleared_textures_; | 163 uncleared_textures_; |
163 | 164 |
164 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 165 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
165 }; | 166 }; |
166 | 167 |
167 } // namespace media | 168 } // namespace media |
168 | 169 |
169 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 170 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |