Home | History | Annotate | Download | only in desktop_capture
      1 /*
      2  *  Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
      3  *
      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.
      9  */
     10 
     11 #include "webrtc/modules/desktop_capture/screen_capturer.h"
     12 
     13 #include "webrtc/modules/desktop_capture/desktop_capture_options.h"
     14 
     15 namespace webrtc {
     16 
     17 ScreenCapturer* ScreenCapturer::Create() {
     18   return Create(DesktopCaptureOptions::CreateDefault());
     19 }
     20 
     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);
     27 }
     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);
     33 }
     34 #endif
     35 
     36 }  // namespace webrtc
     37