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

Unified Diff: media/gpu/android_video_decode_accelerator.cc

Issue 1942883004: Queue more input buffers and process more output if possible. (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 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: media/gpu/android_video_decode_accelerator.cc
diff --git a/media/gpu/android_video_decode_accelerator.cc b/media/gpu/android_video_decode_accelerator.cc
index f6b7178318127a2e80e5f487788c70daad1e162d..b9c86d18513cb535a4c7ff4e1607d0600cbfaef5 100644
--- a/media/gpu/android_video_decode_accelerator.cc
+++ b/media/gpu/android_video_decode_accelerator.cc
@@ -507,9 +507,13 @@ void AndroidVideoDecodeAccelerator::DoIOTask(bool start_timer) {
return;
strategy_->MaybeRenderEarly();
- bool did_work = QueueInput();
- while (DequeueOutput())
- did_work = true;
+ bool did_work = false, did_input = false, did_output = false;
+ do {
+ did_input = QueueInput();
+ did_output = DequeueOutput();
+ if (did_input || did_output)
+ did_work = true;
+ } while (did_input || did_output);
ManageTimer(did_work || start_timer);
}
« 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