| 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_FILTERS_GPU_VIDEO_DECODER_H_ | 5 #ifndef MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 6 #define MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 // Set during ProvidePictureBuffers(), used for checking and implementing | 213 // Set during ProvidePictureBuffers(), used for checking and implementing |
| 214 // HasAvailableOutputFrames(). | 214 // HasAvailableOutputFrames(). |
| 215 int available_pictures_; | 215 int available_pictures_; |
| 216 | 216 |
| 217 // If true, the client cannot expect the VDA to produce any new decoded | 217 // If true, the client cannot expect the VDA to produce any new decoded |
| 218 // frames, until it returns all PictureBuffers it may be holding back to the | 218 // frames, until it returns all PictureBuffers it may be holding back to the |
| 219 // VDA. In other words, the VDA may require all PictureBuffers to be able to | 219 // VDA. In other words, the VDA may require all PictureBuffers to be able to |
| 220 // proceed with decoding the next frame. | 220 // proceed with decoding the next frame. |
| 221 bool needs_all_picture_buffers_to_decode_; | 221 bool needs_all_picture_buffers_to_decode_; |
| 222 | 222 |
| 223 // If true, then the resulting video frame will have COPY_REQUIRED set. |
| 224 bool copy_required_; |
| 225 |
| 223 // Bound to factories_->GetMessageLoop(). | 226 // Bound to factories_->GetMessageLoop(). |
| 224 // NOTE: Weak pointers must be invalidated before all other member variables. | 227 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 225 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; | 228 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; |
| 226 | 229 |
| 227 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 230 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
| 228 }; | 231 }; |
| 229 | 232 |
| 230 } // namespace media | 233 } // namespace media |
| 231 | 234 |
| 232 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 235 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| OLD | NEW |