| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // | 32 // |
| 33 // ScreenCapturerWinGdi is double-buffered as required by ScreenCapturer. | 33 // ScreenCapturerWinGdi is double-buffered as required by ScreenCapturer. |
| 34 class ScreenCapturerWinGdi : public ScreenCapturer { | 34 class ScreenCapturerWinGdi : public ScreenCapturer { |
| 35 public: | 35 public: |
| 36 explicit ScreenCapturerWinGdi(const DesktopCaptureOptions& options); | 36 explicit ScreenCapturerWinGdi(const DesktopCaptureOptions& options); |
| 37 virtual ~ScreenCapturerWinGdi(); | 37 virtual ~ScreenCapturerWinGdi(); |
| 38 | 38 |
| 39 // Overridden from ScreenCapturer: | 39 // Overridden from ScreenCapturer: |
| 40 void Start(Callback* callback) override; | 40 void Start(Callback* callback) override; |
| 41 void SetSharedMemoryFactory( | 41 void SetSharedMemoryFactory( |
| 42 rtc::scoped_ptr<SharedMemoryFactory> shared_memory_factory) override; | 42 std::unique_ptr<SharedMemoryFactory> shared_memory_factory) override; |
| 43 void Capture(const DesktopRegion& region) override; | 43 void Capture(const DesktopRegion& region) override; |
| 44 bool GetScreenList(ScreenList* screens) override; | 44 bool GetScreenList(ScreenList* screens) override; |
| 45 bool SelectScreen(ScreenId id) override; | 45 bool SelectScreen(ScreenId id) override; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 typedef HRESULT (WINAPI * DwmEnableCompositionFunc)(UINT); | 48 typedef HRESULT (WINAPI * DwmEnableCompositionFunc)(UINT); |
| 49 | 49 |
| 50 // Make sure that the device contexts match the screen configuration. | 50 // Make sure that the device contexts match the screen configuration. |
| 51 void PrepareCaptureResources(); | 51 void PrepareCaptureResources(); |
| 52 | 52 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 // Used to suppress duplicate logging of SetThreadExecutionState errors. | 88 // Used to suppress duplicate logging of SetThreadExecutionState errors. |
| 89 bool set_thread_execution_state_failed_; | 89 bool set_thread_execution_state_failed_; |
| 90 | 90 |
| 91 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinGdi); | 91 RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinGdi); |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 } // namespace webrtc | 94 } // namespace webrtc |
| 95 | 95 |
| 96 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_GDI_H_ | 96 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WIN_SCREEN_CAPTURER_WIN_GDI_H_ |
| OLD | NEW |