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

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

Issue 2308533003: Break tight coupling of VideoCaptureDeviceClient to renderer_host (Closed)
Patch Set: mcasas' & emircan's comments Created 4 years, 3 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 6398f48ca7eb685a599e47bc24231cc0c0e11552..4ee7fae7a81bf467a581d80d61225b5528c47c59 100644
--- a/content/browser/renderer_host/media/video_capture_buffer_pool.cc
+++ b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
@@ -16,8 +16,6 @@
namespace content {
-const int VideoCaptureBufferPool::kInvalidId = -1;
-
// Tracker specifics for SharedMemory.
class VideoCaptureBufferPool::SharedMemTracker final : public Tracker {
public:
@@ -385,7 +383,7 @@ int VideoCaptureBufferPool::ResurrectLastForProducer(
return kInvalidId;
}
-double VideoCaptureBufferPool::GetBufferPoolUtilization() const {
+double VideoCaptureBufferPool::GetBufferPoolUtilization() {
base::AutoLock lock(lock_);
int num_buffers_held = 0;
for (const auto& entry : trackers_) {

Powered by Google App Engine
This is Rietveld 408576698