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

Unified Diff: media/blink/video_frame_compositor.cc

Issue 2651323002: [Video] Reset new processed frame callback on the compositor thread. (Closed)
Patch Set: Created 3 years, 11 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/blink/video_frame_compositor.cc
diff --git a/media/blink/video_frame_compositor.cc b/media/blink/video_frame_compositor.cc
index ec2034240c4f13b5ea188176159c35b8774e08c1..5288716244a2cc2b48315a7b479aa0b98d430f6d 100644
--- a/media/blink/video_frame_compositor.cc
+++ b/media/blink/video_frame_compositor.cc
@@ -63,6 +63,7 @@ void VideoFrameCompositor::OnRendererStateUpdate(bool new_state) {
if (rendering_) {
auto_open_close_->Begin();
} else {
+ new_processed_frame_cb_.Reset();
auto_open_close_->End();
}
@@ -139,7 +140,6 @@ void VideoFrameCompositor::Stop() {
compositor_task_runner_->PostTask(
FROM_HERE, base::Bind(&VideoFrameCompositor::OnRendererStateUpdate,
base::Unretained(this), false));
- new_processed_frame_cb_.Reset();
}
void VideoFrameCompositor::PaintSingleFrame(
« 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