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

Unified Diff: content/common/gpu/media/android_video_decode_accelerator.cc

Issue 1884633002: Always start AVDA codec configuration thread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed comment. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/android_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/android_video_decode_accelerator.cc b/content/common/gpu/media/android_video_decode_accelerator.cc
index e6e9f51694da99afe931a968f26fc2e0b35cd7f8..ccc3ef84639cecd268370fae7d3dc1ad9fdc03ef 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.cc
+++ b/content/common/gpu/media/android_video_decode_accelerator.cc
@@ -405,12 +405,15 @@ bool AndroidVideoDecodeAccelerator::Initialize(const Config& config,
new OnFrameAvailableHandler(this, surface_texture);
}
+ // Start the thread for async configuration, even if we don't need it now.
+ // ResetCodecState might rebuild the codec later, for example.
+ g_avda_timer.Pointer()->StartThread(this);
+
// If we are encrypted, then we aren't able to create the codec yet.
if (is_encrypted_)
return true;
if (deferred_initialization_pending_) {
- g_avda_timer.Pointer()->StartThread(this);
ConfigureMediaCodecAsynchronously();
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698