| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/canvas_capture_handler.h" | 5 #include "content/renderer/media/canvas_capture_handler.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/rand_util.h" | 10 #include "base/rand_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 11 #include "content/public/renderer/render_thread.h" | 12 #include "content/public/renderer/render_thread.h" |
| 12 #include "content/renderer/media/media_stream_video_capturer_source.h" | 13 #include "content/renderer/media/media_stream_video_capturer_source.h" |
| 13 #include "content/renderer/media/media_stream_video_source.h" | 14 #include "content/renderer/media/media_stream_video_source.h" |
| 14 #include "content/renderer/media/media_stream_video_track.h" | 15 #include "content/renderer/media/media_stream_video_track.h" |
| 15 #include "content/renderer/render_thread_impl.h" | 16 #include "content/renderer/render_thread_impl.h" |
| 16 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" | 17 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" |
| 17 #include "third_party/WebKit/public/platform/WebString.h" | 18 #include "third_party/WebKit/public/platform/WebString.h" |
| 18 #include "third_party/libyuv/include/libyuv.h" | 19 #include "third_party/libyuv/include/libyuv.h" |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 199 |
| 199 web_track->initialize(webkit_source); | 200 web_track->initialize(webkit_source); |
| 200 blink::WebMediaConstraints constraints; | 201 blink::WebMediaConstraints constraints; |
| 201 constraints.initialize(); | 202 constraints.initialize(); |
| 202 web_track->setExtraData(new MediaStreamVideoTrack( | 203 web_track->setExtraData(new MediaStreamVideoTrack( |
| 203 media_stream_source.release(), constraints, | 204 media_stream_source.release(), constraints, |
| 204 MediaStreamVideoSource::ConstraintsCallback(), true)); | 205 MediaStreamVideoSource::ConstraintsCallback(), true)); |
| 205 } | 206 } |
| 206 | 207 |
| 207 } // namespace content | 208 } // namespace content |
| OLD | NEW |