| 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 CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 // We only allow self-delete, from OnWillDestroyStub(), after cleanup there. | 105 // We only allow self-delete, from OnWillDestroyStub(), after cleanup there. |
| 106 ~GpuVideoDecodeAccelerator() override; | 106 ~GpuVideoDecodeAccelerator() override; |
| 107 | 107 |
| 108 // Handlers for IPC messages. | 108 // Handlers for IPC messages. |
| 109 void OnSetCdm(int cdm_id); | 109 void OnSetCdm(int cdm_id); |
| 110 void OnDecode(const media::BitstreamBuffer& bitstream_buffer); | 110 void OnDecode(const media::BitstreamBuffer& bitstream_buffer); |
| 111 void OnAssignPictureBuffers(const std::vector<int32_t>& buffer_ids, | 111 void OnAssignPictureBuffers(const std::vector<int32_t>& buffer_ids, |
| 112 const std::vector<uint32_t>& texture_ids); | 112 const std::vector<uint32_t>& texture_ids); |
| 113 void OnReusePictureBuffer(int32_t picture_buffer_id); | 113 void OnReusePictureBuffer(int32_t picture_buffer_id); |
| 114 void OnFlush(); | 114 void OnFlush(bool return_buffers); |
| 115 void OnReset(); | 115 void OnReset(); |
| 116 void OnDestroy(); | 116 void OnDestroy(); |
| 117 | 117 |
| 118 // Called on IO thread when |filter_| has been removed. | 118 // Called on IO thread when |filter_| has been removed. |
| 119 void OnFilterRemoved(); | 119 void OnFilterRemoved(); |
| 120 | 120 |
| 121 // Sets the texture to cleared. | 121 // Sets the texture to cleared. |
| 122 void SetTextureCleared(const media::Picture& picture); | 122 void SetTextureCleared(const media::Picture& picture); |
| 123 | 123 |
| 124 #if (defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)) || defined(OS_MACOSX) | 124 #if (defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)) || defined(OS_MACOSX) |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 175 |
| 176 // A map from picture buffer ID to TextureRef that have not been cleared. | 176 // A map from picture buffer ID to TextureRef that have not been cleared. |
| 177 std::map<int32_t, scoped_refptr<gpu::gles2::TextureRef>> uncleared_textures_; | 177 std::map<int32_t, scoped_refptr<gpu::gles2::TextureRef>> uncleared_textures_; |
| 178 | 178 |
| 179 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 179 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 } // namespace content | 182 } // namespace content |
| 183 | 183 |
| 184 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 184 #endif // CONTENT_COMMON_GPU_MEDIA_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |