Index: webrtc/modules/desktop_capture/win/window_capture_utils.h |
diff --git a/webrtc/modules/desktop_capture/win/window_capture_utils.h b/webrtc/modules/desktop_capture/win/window_capture_utils.h |
index 2a3a470c59e64a012c48182402102f848d3ac3b1..aa89c12a9af6dda5c2ca8256add4fbf96d3950dc 100644 |
--- a/webrtc/modules/desktop_capture/win/window_capture_utils.h |
+++ b/webrtc/modules/desktop_capture/win/window_capture_utils.h |
@@ -22,4 +22,19 @@ bool GetCroppedWindowRect(HWND window, |
DesktopRect* cropped_rect, |
DesktopRect* original_rect); |
+typedef HRESULT (WINAPI *DwmIsCompositionEnabledFunc)(BOOL* enabled); |
+class AeroChecker { |
+ public: |
+ AeroChecker(); |
+ ~AeroChecker(); |
+ |
+ bool IsAeroEnabled(); |
+ |
+ private: |
+ HMODULE dwmapi_library_; |
+ DwmIsCompositionEnabledFunc func_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(AeroChecker); |
+}; |
+ |
} // namespace webrtc |