| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // chosen VDA can decode on IO thread. | 79 // chosen VDA can decode on IO thread. |
| 80 bool Initialize(const media::VideoDecodeAccelerator::Config& config); | 80 bool Initialize(const media::VideoDecodeAccelerator::Config& config); |
| 81 | 81 |
| 82 private: | 82 private: |
| 83 class MessageFilter; | 83 class MessageFilter; |
| 84 | 84 |
| 85 // We only allow self-delete, from OnWillDestroyStub(), after cleanup there. | 85 // We only allow self-delete, from OnWillDestroyStub(), after cleanup there. |
| 86 ~GpuVideoDecodeAccelerator() override; | 86 ~GpuVideoDecodeAccelerator() override; |
| 87 | 87 |
| 88 // Handlers for IPC messages. | 88 // Handlers for IPC messages. |
| 89 void OnSetCdm(int cdm_id); | |
| 90 void OnDecode(const media::BitstreamBuffer& bitstream_buffer); | 89 void OnDecode(const media::BitstreamBuffer& bitstream_buffer); |
| 91 void OnAssignPictureBuffers( | 90 void OnAssignPictureBuffers( |
| 92 const std::vector<int32_t>& buffer_ids, | 91 const std::vector<int32_t>& buffer_ids, |
| 93 const std::vector<media::PictureBuffer::TextureIds>& texture_ids); | 92 const std::vector<media::PictureBuffer::TextureIds>& texture_ids); |
| 94 void OnReusePictureBuffer(int32_t picture_buffer_id); | 93 void OnReusePictureBuffer(int32_t picture_buffer_id); |
| 95 void OnFlush(); | 94 void OnFlush(); |
| 96 void OnReset(); | 95 void OnReset(); |
| 97 void OnDestroy(); | 96 void OnDestroy(); |
| 98 | 97 |
| 99 // Called on IO thread when |filter_| has been removed. | 98 // Called on IO thread when |filter_| has been removed. |
| (...skipping 60 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 |