| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/renderer/media/media_stream_video_capturer_source.h" | 5 #include "content/renderer/media/media_stream_video_capturer_source.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 running_callback_.Run(true); | 357 running_callback_.Run(true); |
| 358 break; | 358 break; |
| 359 | 359 |
| 360 case VIDEO_CAPTURE_STATE_STOPPING: | 360 case VIDEO_CAPTURE_STATE_STOPPING: |
| 361 case VIDEO_CAPTURE_STATE_STOPPED: | 361 case VIDEO_CAPTURE_STATE_STOPPED: |
| 362 case VIDEO_CAPTURE_STATE_ERROR: | 362 case VIDEO_CAPTURE_STATE_ERROR: |
| 363 case VIDEO_CAPTURE_STATE_ENDED: | 363 case VIDEO_CAPTURE_STATE_ENDED: |
| 364 base::ResetAndReturn(&running_callback_).Run(false); | 364 base::ResetAndReturn(&running_callback_).Run(false); |
| 365 break; | 365 break; |
| 366 | 366 |
| 367 case VIDEO_CAPTURE_STATE_STARTING: |
| 367 case VIDEO_CAPTURE_STATE_PAUSED: | 368 case VIDEO_CAPTURE_STATE_PAUSED: |
| 368 case VIDEO_CAPTURE_STATE_RESUMED: | 369 case VIDEO_CAPTURE_STATE_RESUMED: |
| 369 // Not applicable to reporting on device starts or errors. | 370 // Not applicable to reporting on device starts or errors. |
| 370 break; | 371 break; |
| 371 } | 372 } |
| 372 } | 373 } |
| 373 | 374 |
| 374 void LocalVideoCapturerSource::OnDeviceFormatsInUseReceived( | 375 void LocalVideoCapturerSource::OnDeviceFormatsInUseReceived( |
| 375 const media::VideoCaptureFormats& formats_in_use) { | 376 const media::VideoCaptureFormats& formats_in_use) { |
| 376 DVLOG(3) << __func__ << ", #formats received: " << formats_in_use.size(); | 377 DVLOG(3) << __func__ << ", #formats received: " << formats_in_use.size(); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 StopSource(); | 502 StopSource(); |
| 502 } | 503 } |
| 503 } | 504 } |
| 504 | 505 |
| 505 const char* | 506 const char* |
| 506 MediaStreamVideoCapturerSource::GetPowerLineFrequencyForTesting() const { | 507 MediaStreamVideoCapturerSource::GetPowerLineFrequencyForTesting() const { |
| 507 return kPowerLineFrequency; | 508 return kPowerLineFrequency; |
| 508 } | 509 } |
| 509 | 510 |
| 510 } // namespace content | 511 } // namespace content |
| OLD | NEW |