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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 | 131 |
132 // Callback to return a WeakPtr to GLES2Decoder. | 132 // Callback to return a WeakPtr to GLES2Decoder. |
133 GetGLES2DecoderCallback get_gles2_decoder_cb_; | 133 GetGLES2DecoderCallback get_gles2_decoder_cb_; |
134 | 134 |
135 // The texture dimensions as requested by ProvidePictureBuffers(). | 135 // The texture dimensions as requested by ProvidePictureBuffers(). |
136 gfx::Size texture_dimensions_; | 136 gfx::Size texture_dimensions_; |
137 | 137 |
138 // The texture target as requested by ProvidePictureBuffers(). | 138 // The texture target as requested by ProvidePictureBuffers(). |
139 uint32_t texture_target_; | 139 uint32_t texture_target_; |
140 | 140 |
141 // The number of textures per picture buffer as requests by | 141 // The format of the picture buffers requested by ProvidePictureBuffers(). |
142 // ProvidePictureBuffers() | 142 VideoPixelFormat pixel_format_; |
| 143 |
| 144 // The number of textures per picture buffer as requested by |
| 145 // ProvidePictureBuffers(). |
143 uint32_t textures_per_buffer_; | 146 uint32_t textures_per_buffer_; |
144 | 147 |
145 // The message filter to run VDA::Decode on IO thread if VDA supports it. | 148 // The message filter to run VDA::Decode on IO thread if VDA supports it. |
146 scoped_refptr<MessageFilter> filter_; | 149 scoped_refptr<MessageFilter> filter_; |
147 | 150 |
148 // Used to wait on for |filter_| to be removed, before we can safely | 151 // Used to wait on for |filter_| to be removed, before we can safely |
149 // destroy the VDA. | 152 // destroy the VDA. |
150 base::WaitableEvent filter_removed_; | 153 base::WaitableEvent filter_removed_; |
151 | 154 |
152 // GPU child thread task runner. | 155 // GPU child thread task runner. |
(...skipping 17 matching lines...) Expand all Loading... |
170 // cleared. | 173 // cleared. |
171 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> | 174 std::map<int32_t, std::vector<scoped_refptr<gpu::gles2::TextureRef>>> |
172 uncleared_textures_; | 175 uncleared_textures_; |
173 | 176 |
174 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); | 177 DISALLOW_IMPLICIT_CONSTRUCTORS(GpuVideoDecodeAccelerator); |
175 }; | 178 }; |
176 | 179 |
177 } // namespace media | 180 } // namespace media |
178 | 181 |
179 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ | 182 #endif // MEDIA_GPU_IPC_SERVICE_GPU_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |