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

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: Turn into DCHECK. 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
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..aaa02ffae630d005ee505b0d852e6a558f69ab75 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,12 @@ 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.
+ uint32_t dropped_frame_counter_ = 0;
+#endif // DCHECK_IS_ON()
+
// Indication to the Client to copy-transform the incoming data into
// GpuMemoryBuffers.
const bool use_gpu_memory_buffers_;

Powered by Google App Engine
This is Rietveld 408576698