| 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 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 // when the EOS buffer is received. | 376 // when the EOS buffer is received. |
| 377 bool codec_needs_reset_; | 377 bool codec_needs_reset_; |
| 378 | 378 |
| 379 // True if surface creation and |picture_buffer_manager_| initialization has | 379 // True if surface creation and |picture_buffer_manager_| initialization has |
| 380 // been defered until the first Decode() call. | 380 // been defered until the first Decode() call. |
| 381 bool defer_surface_creation_; | 381 bool defer_surface_creation_; |
| 382 | 382 |
| 383 // Has a value if a SetSurface() call has occurred and a new surface should be | 383 // Has a value if a SetSurface() call has occurred and a new surface should be |
| 384 // switched to when possible. Cleared during OnDestroyingSurface() and if all | 384 // switched to when possible. Cleared during OnDestroyingSurface() and if all |
| 385 // pictures have been rendered in DequeueOutput(). | 385 // pictures have been rendered in DequeueOutput(). |
| 386 int32_t surface_id_; | |
| 387 base::Optional<int32_t> pending_surface_id_; | 386 base::Optional<int32_t> pending_surface_id_; |
| 388 | 387 |
| 389 // Copy of the VDA::Config we were given. | 388 // Copy of the VDA::Config we were given. |
| 390 Config config_; | 389 Config config_; |
| 391 | 390 |
| 392 OnDestroyingSurfaceCallback on_destroying_surface_cb_; | 391 OnDestroyingSurfaceCallback on_destroying_surface_cb_; |
| 393 | 392 |
| 394 // WeakPtrFactory for posting tasks back to |this|. | 393 // WeakPtrFactory for posting tasks back to |this|. |
| 395 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; | 394 base::WeakPtrFactory<AndroidVideoDecodeAccelerator> weak_this_factory_; |
| 396 | 395 |
| 397 friend class AndroidVideoDecodeAcceleratorTest; | 396 friend class AndroidVideoDecodeAcceleratorTest; |
| 398 }; | 397 }; |
| 399 | 398 |
| 400 } // namespace media | 399 } // namespace media |
| 401 | 400 |
| 402 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ | 401 #endif // MEDIA_GPU_ANDROID_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |