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