| Index: content/browser/renderer_host/media/video_capture_controller.cc
|
| diff --git a/content/browser/renderer_host/media/video_capture_controller.cc b/content/browser/renderer_host/media/video_capture_controller.cc
|
| index 617b556f32119d3f9a025bb6df62dc94d73ef5b6..4fd53a88fb610b1262b25baee9e3761b6633fa56 100644
|
| --- a/content/browser/renderer_host/media/video_capture_controller.cc
|
| +++ b/content/browser/renderer_host/media/video_capture_controller.cc
|
| @@ -41,9 +41,6 @@ static const int kInfiniteRatio = 99999;
|
| name, \
|
| (height) ? ((width) * 100) / (height) : kInfiniteRatio);
|
|
|
| -// The number of buffers that VideoCaptureBufferPool should allocate.
|
| -const int kNoOfBuffers = 3;
|
| -
|
| class PoolBuffer : public media::VideoCaptureDevice::Client::Buffer {
|
| public:
|
| PoolBuffer(const scoped_refptr<VideoCaptureBufferPool>& pool,
|
| @@ -185,8 +182,8 @@ class VideoCaptureController::VideoCaptureDeviceClient
|
| bool first_frame_;
|
| };
|
|
|
| -VideoCaptureController::VideoCaptureController()
|
| - : buffer_pool_(new VideoCaptureBufferPool(kNoOfBuffers)),
|
| +VideoCaptureController::VideoCaptureController(int max_buffers)
|
| + : buffer_pool_(new VideoCaptureBufferPool(max_buffers)),
|
| state_(VIDEO_CAPTURE_STATE_STARTED),
|
| weak_ptr_factory_(this) {
|
| }
|
|
|