Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: content/common/gpu/media/android_video_decode_accelerator.h

Issue 1918623002: Use the MediaCodec flush workaround in more cases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/android_video_decode_accelerator.cc » ('j') | media/base/android/media_codec_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698