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

Unified Diff: content/browser/renderer_host/media/video_capture_buffer_pool.cc

Issue 1864813002: Tab/Desktop Capture: Use requests instead of timer-based refreshing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@video_refresh_from_sinks
Patch Set: Addressed comments from PS2, and sampling decision logic change w.r.t. recent animation. 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
Index: content/browser/renderer_host/media/video_capture_buffer_pool.cc
diff --git a/content/browser/renderer_host/media/video_capture_buffer_pool.cc b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
index 831c060eabc27eba65b5a8f02883c8a762cb8eb7..91c660a64c1b6a2f88c602e739df52a29989491d 100644
--- a/content/browser/renderer_host/media/video_capture_buffer_pool.cc
+++ b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
@@ -374,7 +374,9 @@ int VideoCaptureBufferPool::ResurrectLastForProducer(
it->second->pixel_format() == format &&
it->second->storage_type() == storage) {
it->second->set_held_by_producer(true);
- return last_relinquished_buffer_id_;
+ const int resurrected_buffer_id = last_relinquished_buffer_id_;
+ last_relinquished_buffer_id_ = kInvalidId;
+ return resurrected_buffer_id;
}
return kInvalidId;

Powered by Google App Engine
This is Rietveld 408576698