2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
11 #include "webrtc/modules/desktop_capture/screen_capturer.h"
13 #include "webrtc/modules/desktop_capture/desktop_capture_options.h"
17 ScreenCapturer* ScreenCapturer::Create() {
18 return Create(DesktopCaptureOptions::CreateDefault());
21 #if defined(WEBRTC_LINUX)
22 ScreenCapturer* ScreenCapturer::CreateWithXDamage(
23 bool use_update_notifications) {
24 DesktopCaptureOptions options;
25 options.set_use_update_notifications(use_update_notifications);
26 return Create(options);
28 #elif defined(WEBRTC_WIN)
29 ScreenCapturer* ScreenCapturer::CreateWithDisableAero(bool disable_effects) {
30 DesktopCaptureOptions options;
31 options.set_disable_effects(disable_effects);
32 return Create(options);