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

Unified Diff: content/browser/renderer_host/media/video_capture_device_client.h

Issue 2124073006: Remove VideoCaptureDeviceClient buffer warning logs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | content/browser/renderer_host/media/video_capture_device_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/video_capture_device_client.h
diff --git a/content/browser/renderer_host/media/video_capture_device_client.h b/content/browser/renderer_host/media/video_capture_device_client.h
index 2d6cccc8b2c9db32a6463231e94bc96be25f3f31..c5447ca18e74eed9969270fb657a72e2aefd87f6 100644
--- a/content/browser/renderer_host/media/video_capture_device_client.h
+++ b/content/browser/renderer_host/media/video_capture_device_client.h
@@ -103,6 +103,14 @@ class CONTENT_EXPORT VideoCaptureDeviceClient
// The pool of shared-memory buffers used for capturing.
const scoped_refptr<VideoCaptureBufferPool> buffer_pool_;
+#if DCHECK_IS_ON()
+ // Counter used to track the number of times consecutive capture buffers are
+ // dropped.
+ int dropped_frame_counter_ = 0;
+
+ static const int kMaxDroppedFrames = 150;
+#endif // DCHECK_IS_ON()
+
// Indication to the Client to copy-transform the incoming data into
// GpuMemoryBuffers.
const bool use_gpu_memory_buffers_;
« no previous file with comments | « no previous file | content/browser/renderer_host/media/video_capture_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698