| 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, | |
| 61 uint32_t textures_per_buffer, | 60 uint32_t textures_per_buffer, |
| 62 const gfx::Size& dimensions, | 61 const gfx::Size& dimensions, |
| 63 uint32_t texture_target) override; | 62 uint32_t texture_target) override; |
| 64 void DismissPictureBuffer(int32_t picture_buffer_id) override; | 63 void DismissPictureBuffer(int32_t picture_buffer_id) override; |
| 65 void PictureReady(const media::Picture& picture) override; | 64 void PictureReady(const media::Picture& picture) override; |
| 66 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; | 65 void NotifyEndOfBitstreamBuffer(int32_t bitstream_buffer_id) override; |
| 67 void NotifyFlushDone() override; | 66 void NotifyFlushDone() override; |
| 68 void NotifyResetDone() override; | 67 void NotifyResetDone() override; |
| 69 void NotifyError(media::VideoDecodeAccelerator::Error error) override; | 68 void NotifyError(media::VideoDecodeAccelerator::Error error) override; |
| 70 | 69 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 // cleared. | 159 // cleared. |
| 161 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> | 160 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> |
| 162 uncleared_textures_; | 161 uncleared_textures_; |
| 163 | 162 |
| 164 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 163 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
| 165 }; | 164 }; |
| 166 | 165 |
| 167 } // namespace media | 166 } // namespace media |
| 168 | 167 |
| 169 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 168 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |