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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 | 367 |
368 // True if and only if VDA initialization is deferred, and we have not yet | 368 // True if and only if VDA initialization is deferred, and we have not yet |
369 // called NotifyInitializationComplete. | 369 // called NotifyInitializationComplete. |
370 bool deferred_initialization_pending_; | 370 bool deferred_initialization_pending_; |
371 | 371 |
372 // Indicates if ResetCodecState() should be called upon the next call to | 372 // Indicates if ResetCodecState() should be called upon the next call to |
373 // Decode(). Allows us to avoid trashing the last few frames of a playback | 373 // Decode(). Allows us to avoid trashing the last few frames of a playback |
374 // when the EOS buffer is received. | 374 // when the EOS buffer is received. |
375 bool codec_needs_reset_; | 375 bool codec_needs_reset_; |
376 | 376 |
| 377 // True if surface creation and |picture_buffer_manager_| initialization has |
| 378 // been defered until the first Decode() call. |
| 379 bool defer_surface_creation_; |
| 380 |
377 // Copy of the VDA::Config we were given. | 381 // Copy of the VDA::Config we were given. |
378 Config config_; | 382 Config config_; |
379 | 383 |
380 OnDestroyingSurfaceCallback on_destroying_surface_cb_; | 384 OnDestroyingSurfaceCallback on_destroying_surface_cb_; |
381 | 385 |
382 // WeakPtrFactory for posting tasks back to |this|. | 386 // WeakPtrFactory for posting tasks back to |this|. |
383 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 387 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
384 | 388 |
385 friend class AndroidVideoDecodeAcceleratorTest; | 389 friend class AndroidVideoDecodeAcceleratorTest; |
386 }; | 390 }; |
387 | 391 |
388 } // namespace media | 392 } // namespace media |
389 | 393 |
390 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 394 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |