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

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

Issue 1785153004: Made full screen video with DevTools not flash black on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments and member fn ptr to base::Callback Created 4 years, 9 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
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 05952cb1e431bf4ef0ec156c33d9240f49e1fe82..39ca6ff96b42da52634155152773119d5456582c 100644
--- a/content/common/gpu/media/android_video_decode_accelerator.cc
+++ b/content/common/gpu/media/android_video_decode_accelerator.cc
@@ -808,6 +808,8 @@ void AndroidVideoDecodeAccelerator::AssignPictureBuffers(
return;
}
+ bool have_context = make_context_current_.Run();
+
for (size_t i = 0; i < buffers.size(); ++i) {
if (buffers[i].size() != size_) {
POST_ERROR(INVALID_ARGUMENT,
@@ -824,7 +826,7 @@ void AndroidVideoDecodeAccelerator::AssignPictureBuffers(
// about "zombies" for why we maintain this set in the first place.
dismissed_picture_ids_.erase(id);
- strategy_->AssignOnePictureBuffer(buffers[i]);
+ strategy_->AssignOnePictureBuffer(buffers[i], have_context);
}
TRACE_COUNTER1("media", "AVDA::FreePictureIds", free_picture_ids_.size());

Powered by Google App Engine
This is Rietveld 408576698