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

Unified Diff: media/capture/video/video_capture_buffer_pool_impl.cc

Issue 2607203002: [Mojo Video Capture] Retire buffers when Android Chromium goes to the background (Closed)
Patch Set: Added tests and fixed a bug uncovered by the tests. 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
Index: media/capture/video/video_capture_buffer_pool_impl.cc
diff --git a/media/capture/video/video_capture_buffer_pool_impl.cc b/media/capture/video/video_capture_buffer_pool_impl.cc
index da6857fa2222be28b73e647d6c70df3cbba943c8..b610c0e39fc5036d054d1a569744b0648e3b2b91 100644
--- a/media/capture/video/video_capture_buffer_pool_impl.cc
+++ b/media/capture/video/video_capture_buffer_pool_impl.cc
@@ -15,11 +15,12 @@
namespace media {
+int VideoCaptureBufferPoolImpl::next_buffer_id_ = 0;
+
VideoCaptureBufferPoolImpl::VideoCaptureBufferPoolImpl(
std::unique_ptr<VideoCaptureBufferTrackerFactory> buffer_tracker_factory,
int count)
: count_(count),
- next_buffer_id_(0),
last_relinquished_buffer_id_(kInvalidId),
buffer_tracker_factory_(std::move(buffer_tracker_factory)) {
DCHECK_GT(count, 0);

Powered by Google App Engine
This is Rietveld 408576698