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

Unified Diff: webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h

Issue 2030333003: Revert of Use std::unique_ptr<> to pass frame ownership in DesktopCapturer impls. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h
diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h b/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h
index 3c855e4a4f055baa0233eff0874e54753505e32d..5a50580e6909771e100533e5c05204a0fa86940c 100644
--- a/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h
+++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.h
@@ -56,9 +56,9 @@
// Capture the current cursor shape.
void CaptureCursor();
- Callback* callback_ = nullptr;
+ Callback* callback_;
std::unique_ptr<SharedMemoryFactory> shared_memory_factory_;
- ScreenId current_screen_id_ = kFullDesktopScreenId;
+ ScreenId current_screen_id_;
std::wstring current_device_key_;
// A thread-safe list of invalid rectangles, and the size of the most
@@ -68,8 +68,8 @@
ScopedThreadDesktop desktop_;
// GDI resources used for screen capture.
- HDC desktop_dc_ = NULL;
- HDC memory_dc_ = NULL;
+ HDC desktop_dc_;
+ HDC memory_dc_;
// Queue of the frames buffers.
ScreenCaptureFrameQueue<SharedDesktopFrame> queue_;
@@ -81,11 +81,11 @@
// Class to calculate the difference between two screen bitmaps.
std::unique_ptr<Differ> differ_;
- HMODULE dwmapi_library_ = NULL;
- DwmEnableCompositionFunc composition_func_ = nullptr;
+ HMODULE dwmapi_library_;
+ DwmEnableCompositionFunc composition_func_;
// Used to suppress duplicate logging of SetThreadExecutionState errors.
- bool set_thread_execution_state_failed_ = false;
+ bool set_thread_execution_state_failed_;
RTC_DISALLOW_COPY_AND_ASSIGN(ScreenCapturerWinGdi);
};

Powered by Google App Engine
This is Rietveld 408576698