| 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 "remoting/protocol/webrtc_video_stream.h" | 5 #include "remoting/protocol/webrtc_video_stream.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "remoting/protocol/webrtc_video_capturer_adapter.h" | 8 #include "remoting/protocol/webrtc_video_capturer_adapter.h" |
| 9 #include "third_party/webrtc/api/mediastreaminterface.h" | 9 #include "third_party/webrtc/api/mediastreaminterface.h" |
| 10 #include "third_party/webrtc/api/peerconnectioninterface.h" | 10 #include "third_party/webrtc/api/peerconnectioninterface.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 stream_ = nullptr; | 61 stream_ = nullptr; |
| 62 connection_ = nullptr; | 62 connection_ = nullptr; |
| 63 return false; | 63 return false; |
| 64 } | 64 } |
| 65 | 65 |
| 66 return true; | 66 return true; |
| 67 } | 67 } |
| 68 | 68 |
| 69 void WebrtcVideoStream::Pause(bool pause) { | 69 void WebrtcVideoStream::Pause(bool pause) { |
| 70 if (capturer_adapter_) | 70 if (capturer_adapter_) |
| 71 capturer_adapter_->Pause(pause); | 71 capturer_adapter_->PauseCapturer(pause); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void WebrtcVideoStream::OnInputEventReceived(int64_t event_timestamp) { | 74 void WebrtcVideoStream::OnInputEventReceived(int64_t event_timestamp) { |
| 75 NOTIMPLEMENTED(); | 75 NOTIMPLEMENTED(); |
| 76 } | 76 } |
| 77 | 77 |
| 78 void WebrtcVideoStream::SetLosslessEncode(bool want_lossless) { | 78 void WebrtcVideoStream::SetLosslessEncode(bool want_lossless) { |
| 79 NOTIMPLEMENTED(); | 79 NOTIMPLEMENTED(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 void WebrtcVideoStream::SetLosslessColor(bool want_lossless) { | 82 void WebrtcVideoStream::SetLosslessColor(bool want_lossless) { |
| 83 NOTIMPLEMENTED(); | 83 NOTIMPLEMENTED(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 void WebrtcVideoStream::SetSizeCallback(const SizeCallback& size_callback) { | 86 void WebrtcVideoStream::SetSizeCallback(const SizeCallback& size_callback) { |
| 87 if (capturer_adapter_) | 87 if (capturer_adapter_) |
| 88 capturer_adapter_->SetSizeCallback(size_callback); | 88 capturer_adapter_->SetSizeCallback(size_callback); |
| 89 } | 89 } |
| 90 | 90 |
| 91 } // namespace protocol | 91 } // namespace protocol |
| 92 } // namespace remoting | 92 } // namespace remoting |
| OLD | NEW |