| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #include "webrtc/modules/desktop_capture/fallback_desktop_capturer_wrapper.h" | 11 #include "webrtc/modules/desktop_capture/fallback_desktop_capturer_wrapper.h" |
| 12 | 12 |
| 13 #include <utility> | 13 #include <utility> |
| 14 | 14 |
| 15 #include "webrtc/rtc_base/checks.h" | 15 #include "webrtc/base/checks.h" |
| 16 | 16 |
| 17 namespace webrtc { | 17 namespace webrtc { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 // Implementation to share a SharedMemoryFactory between DesktopCapturer | 21 // Implementation to share a SharedMemoryFactory between DesktopCapturer |
| 22 // instances. This class is designed for synchronized DesktopCapturer | 22 // instances. This class is designed for synchronized DesktopCapturer |
| 23 // implementations only. | 23 // implementations only. |
| 24 class SharedMemoryFactoryProxy : public SharedMemoryFactory { | 24 class SharedMemoryFactoryProxy : public SharedMemoryFactory { |
| 25 public: | 25 public: |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 return; | 150 return; |
| 151 } | 151 } |
| 152 | 152 |
| 153 if (result == Result::ERROR_PERMANENT) { | 153 if (result == Result::ERROR_PERMANENT) { |
| 154 main_capturer_permanent_error_ = true; | 154 main_capturer_permanent_error_ = true; |
| 155 } | 155 } |
| 156 secondary_capturer_->CaptureFrame(); | 156 secondary_capturer_->CaptureFrame(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace webrtc | 159 } // namespace webrtc |
| OLD | NEW |