| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 // frames, until it returns all PictureBuffers it may be holding back to the | 228 // frames, until it returns all PictureBuffers it may be holding back to the |
| 229 // VDA. In other words, the VDA may require all PictureBuffers to be able to | 229 // VDA. In other words, the VDA may require all PictureBuffers to be able to |
| 230 // proceed with decoding the next frame. | 230 // proceed with decoding the next frame. |
| 231 bool needs_all_picture_buffers_to_decode_; | 231 bool needs_all_picture_buffers_to_decode_; |
| 232 | 232 |
| 233 // If true, then the VDA supports deferred initialization via | 233 // If true, then the VDA supports deferred initialization via |
| 234 // NotifyInitializationComplete. Otherwise, it will return initialization | 234 // NotifyInitializationComplete. Otherwise, it will return initialization |
| 235 // status synchronously from VDA::Initialize. | 235 // status synchronously from VDA::Initialize. |
| 236 bool supports_deferred_initialization_; | 236 bool supports_deferred_initialization_; |
| 237 | 237 |
| 238 // This flag translates to COPY_REQUIRED flag for each frame. |
| 239 bool requires_texture_copy_; |
| 240 |
| 238 // Bound to factories_->GetMessageLoop(). | 241 // Bound to factories_->GetMessageLoop(). |
| 239 // NOTE: Weak pointers must be invalidated before all other member variables. | 242 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 240 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; | 243 base::WeakPtrFactory<GpuVideoDecoder> weak_factory_; |
| 241 | 244 |
| 242 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); | 245 DISALLOW_COPY_AND_ASSIGN(GpuVideoDecoder); |
| 243 }; | 246 }; |
| 244 | 247 |
| 245 } // namespace media | 248 } // namespace media |
| 246 | 249 |
| 247 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ | 250 #endif // MEDIA_FILTERS_GPU_VIDEO_DECODER_H_ |
| OLD | NEW |