| 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 MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 // from being sent after a reset. | 443 // from being sent after a reset. |
| 444 int error_sequence_token_; | 444 int error_sequence_token_; |
| 445 | 445 |
| 446 // PostError will defer sending an error if and only if this is true. | 446 // PostError will defer sending an error if and only if this is true. |
| 447 bool defer_errors_; | 447 bool defer_errors_; |
| 448 | 448 |
| 449 // True if and only if VDA initialization is deferred, and we have not yet | 449 // True if and only if VDA initialization is deferred, and we have not yet |
| 450 // called NotifyInitializationComplete. | 450 // called NotifyInitializationComplete. |
| 451 bool deferred_initialization_pending_; | 451 bool deferred_initialization_pending_; |
| 452 | 452 |
| 453 // Indicates if ResetCodecState() should be called upon the next call to |
| 454 // Decode(). Allows us to avoid trashing the last few frames of a playback |
| 455 // when the EOS buffer is received. |
| 456 bool codec_needs_reset_; |
| 457 |
| 453 // Copy of the VDA::Config we were given. | 458 // Copy of the VDA::Config we were given. |
| 454 Config config_; | 459 Config config_; |
| 455 | 460 |
| 456 OnDestroyingSurfaceCallback on_destroying_surface_cb_; | 461 OnDestroyingSurfaceCallback on_destroying_surface_cb_; |
| 457 | 462 |
| 458 // WeakPtrFactory for posting tasks back to |this|. | 463 // WeakPtrFactory for posting tasks back to |this|. |
| 459 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 464 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
| 460 | 465 |
| 461 friend class AndroidVideoDecodeAcceleratorTest; | 466 friend class AndroidVideoDecodeAcceleratorTest; |
| 462 }; | 467 }; |
| 463 | 468 |
| 464 } // namespace media | 469 } // namespace media |
| 465 | 470 |
| 466 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 471 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |