Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h

Issue 1923133002: Replace the remaining scoped_ptr with unique_ptr in webrtc/modules/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Don't remove #include "scoped_ptr.h" from .h files Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/shared_memory.h ('k') | webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698