| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 ~GpuVideoDecodeAccelerator() override; | 91 ~GpuVideoDecodeAccelerator() override; |
| 92 | 92 |
| 93 // Handlers for IPC messages. | 93 // Handlers for IPC messages. |
| 94 void OnDecode(const BitstreamBuffer& bitstream_buffer); | 94 void OnDecode(const BitstreamBuffer& bitstream_buffer); |
| 95 void OnAssignPictureBuffers( | 95 void OnAssignPictureBuffers( |
| 96 const std::vector<int32_t>& buffer_ids, | 96 const std::vector<int32_t>& buffer_ids, |
| 97 const std::vector<PictureBuffer::TextureIds>& texture_ids); | 97 const std::vector<PictureBuffer::TextureIds>& texture_ids); |
| 98 void OnReusePictureBuffer(int32_t picture_buffer_id); | 98 void OnReusePictureBuffer(int32_t picture_buffer_id); |
| 99 void OnFlush(); | 99 void OnFlush(); |
| 100 void OnReset(); | 100 void OnReset(); |
| 101 void OnSetSurface( | 101 void OnSetOverlayInfo(const OverlayInfo& overlay_info); |
| 102 int32_t surface_id, | |
| 103 const base::Optional<base::UnguessableToken>& routing_token); | |
| 104 void OnDestroy(); | 102 void OnDestroy(); |
| 105 | 103 |
| 106 // Called on IO thread when |filter_| has been removed. | 104 // Called on IO thread when |filter_| has been removed. |
| 107 void OnFilterRemoved(); | 105 void OnFilterRemoved(); |
| 108 | 106 |
| 109 // Sets the texture to cleared. | 107 // Sets the texture to cleared. |
| 110 void SetTextureCleared(const Picture& picture); | 108 void SetTextureCleared(const Picture& picture); |
| 111 | 109 |
| 112 // Route ID to communicate with the host. | 110 // Route ID to communicate with the host. |
| 113 const int32_t host_route_id_; | 111 const int32_t host_route_id_; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // cleared. | 171 // cleared. |
| 174 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> | 172 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> |
| 175 uncleared_textures_; | 173 uncleared_textures_; |
| 176 | 174 |
| 177 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 175 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
| 178 }; | 176 }; |
| 179 | 177 |
| 180 } // namespace media | 178 } // namespace media |
| 181 | 179 |
| 182 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 180 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |