| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 // from being sent after a reset. | 373 // from being sent after a reset. |
| 374 int error_sequence_token_; | 374 int error_sequence_token_; |
| 375 | 375 |
| 376 // PostError will defer sending an error if and only if this is true. | 376 // PostError will defer sending an error if and only if this is true. |
| 377 bool defer_errors_; | 377 bool defer_errors_; |
| 378 | 378 |
| 379 // True if and only if VDA initialization is deferred, and we have not yet | 379 // True if and only if VDA initialization is deferred, and we have not yet |
| 380 // called NotifyInitializationComplete. | 380 // called NotifyInitializationComplete. |
| 381 bool deferred_initialization_pending_; | 381 bool deferred_initialization_pending_; |
| 382 | 382 |
| 383 // Whether the current |media_codec_| supports flush() or needs to be |
| 384 // recreated. |
| 385 bool codec_needs_flush_workaround_; |
| 386 |
| 383 // WeakPtrFactory for posting tasks back to |this|. | 387 // WeakPtrFactory for posting tasks back to |this|. |
| 384 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 388 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
| 385 | 389 |
| 386 friend class AndroidVideoDecodeAcceleratorTest; | 390 friend class AndroidVideoDecodeAcceleratorTest; |
| 387 }; | 391 }; |
| 388 | 392 |
| 389 } // namespace content | 393 } // namespace content |
| 390 | 394 |
| 391 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 395 #endif // CONTENT_COMMON_GPU_MEDIA_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |