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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 ~GpuVideoDecodeAccelerator() override; | 87 ~GpuVideoDecodeAccelerator() override; |
88 | 88 |
89 // Handlers for IPC messages. | 89 // Handlers for IPC messages. |
90 void OnDecode(const BitstreamBuffer& bitstream_buffer); | 90 void OnDecode(const BitstreamBuffer& bitstream_buffer); |
91 void OnAssignPictureBuffers( | 91 void OnAssignPictureBuffers( |
92 const std::vector<int32_t>& buffer_ids, | 92 const std::vector<int32_t>& buffer_ids, |
93 const std::vector<PictureBuffer::TextureIds>& texture_ids); | 93 const std::vector<PictureBuffer::TextureIds>& texture_ids); |
94 void OnReusePictureBuffer(int32_t picture_buffer_id); | 94 void OnReusePictureBuffer(int32_t picture_buffer_id); |
95 void OnFlush(); | 95 void OnFlush(); |
96 void OnReset(); | 96 void OnReset(); |
| 97 void OnSetSurface(int32_t surface_id); |
97 void OnDestroy(); | 98 void OnDestroy(); |
98 | 99 |
99 // Called on IO thread when |filter_| has been removed. | 100 // Called on IO thread when |filter_| has been removed. |
100 void OnFilterRemoved(); | 101 void OnFilterRemoved(); |
101 | 102 |
102 // Sets the texture to cleared. | 103 // Sets the texture to cleared. |
103 void SetTextureCleared(const Picture& picture); | 104 void SetTextureCleared(const Picture& picture); |
104 | 105 |
105 // Route ID to communicate with the host. | 106 // Route ID to communicate with the host. |
106 const int32_t host_route_id_; | 107 const int32_t host_route_id_; |
(...skipping 53 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 |