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" |
11 #include "base/debug/stack_trace.h" | 11 #include "base/debug/stack_trace.h" |
12 #include "base/location.h" | 12 #include "base/location.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "content/common/media/media_stream_messages.h" | 15 #include "content/common/media/media_stream_messages.h" |
16 #include "content/public/common/media_stream_request.h" | 16 #include "content/public/common/media_stream_request.h" |
17 #include "content/renderer/media/media_stream_constraints_util.h" | 17 #include "content/renderer/media/media_stream_constraints_util.h" |
18 #include "content/renderer/media/video_capture_impl_manager.h" | 18 #include "content/renderer/media/video_capture_impl_manager.h" |
19 #include "content/renderer/render_thread_impl.h" | 19 #include "content/renderer/render_thread_impl.h" |
20 #include "media/base/bind_to_current_loop.h" | 20 #include "media/base/bind_to_current_loop.h" |
21 #include "media/base/limits.h" | 21 #include "media/base/limits.h" |
22 #include "media/base/video_capturer_source.h" | |
23 #include "media/base/video_frame.h" | 22 #include "media/base/video_frame.h" |
| 23 #include "media/capture/video_capturer_source.h" |
24 | 24 |
25 namespace content { | 25 namespace content { |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // Resolutions used if the source doesn't support capability enumeration. | 29 // Resolutions used if the source doesn't support capability enumeration. |
30 struct { | 30 struct { |
31 int width; | 31 int width; |
32 int height; | 32 int height; |
33 } const kVideoResolutions[] = {{1920, 1080}, | 33 } const kVideoResolutions[] = {{1920, 1080}, |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 StopSource(); | 501 StopSource(); |
502 } | 502 } |
503 } | 503 } |
504 | 504 |
505 const char* | 505 const char* |
506 MediaStreamVideoCapturerSource::GetPowerLineFrequencyForTesting() const { | 506 MediaStreamVideoCapturerSource::GetPowerLineFrequencyForTesting() const { |
507 return kPowerLineFrequency; | 507 return kPowerLineFrequency; |
508 } | 508 } |
509 | 509 |
510 } // namespace content | 510 } // namespace content |
OLD | NEW |