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

Side by Side Diff: webrtc/modules/desktop_capture/screen_capturer_x11.cc

Issue 1413333002: system_wrappers: rename interface -> include (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebased again! Created 5 years, 1 month 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) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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
11 #include "webrtc/modules/desktop_capture/screen_capturer.h" 11 #include "webrtc/modules/desktop_capture/screen_capturer.h"
12 12
13 #include <string.h> 13 #include <string.h>
14 #include <set> 14 #include <set>
15 15
16 #include <X11/extensions/Xdamage.h> 16 #include <X11/extensions/Xdamage.h>
17 #include <X11/extensions/Xfixes.h> 17 #include <X11/extensions/Xfixes.h>
18 #include <X11/Xlib.h> 18 #include <X11/Xlib.h>
19 #include <X11/Xutil.h> 19 #include <X11/Xutil.h>
20 20
21 #include "webrtc/base/checks.h" 21 #include "webrtc/base/checks.h"
22 #include "webrtc/base/scoped_ptr.h" 22 #include "webrtc/base/scoped_ptr.h"
23 #include "webrtc/modules/desktop_capture/desktop_capture_options.h" 23 #include "webrtc/modules/desktop_capture/desktop_capture_options.h"
24 #include "webrtc/modules/desktop_capture/desktop_frame.h" 24 #include "webrtc/modules/desktop_capture/desktop_frame.h"
25 #include "webrtc/modules/desktop_capture/differ.h" 25 #include "webrtc/modules/desktop_capture/differ.h"
26 #include "webrtc/modules/desktop_capture/screen_capture_frame_queue.h" 26 #include "webrtc/modules/desktop_capture/screen_capture_frame_queue.h"
27 #include "webrtc/modules/desktop_capture/screen_capturer_helper.h" 27 #include "webrtc/modules/desktop_capture/screen_capturer_helper.h"
28 #include "webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.h" 28 #include "webrtc/modules/desktop_capture/x11/x_server_pixel_buffer.h"
29 #include "webrtc/system_wrappers/interface/logging.h" 29 #include "webrtc/system_wrappers/include/logging.h"
30 #include "webrtc/system_wrappers/interface/tick_util.h" 30 #include "webrtc/system_wrappers/include/tick_util.h"
31 31
32 namespace webrtc { 32 namespace webrtc {
33 namespace { 33 namespace {
34 34
35 // A class to perform video frame capturing for Linux. 35 // A class to perform video frame capturing for Linux.
36 class ScreenCapturerLinux : public ScreenCapturer, 36 class ScreenCapturerLinux : public ScreenCapturer,
37 public SharedXDisplay::XEventHandler { 37 public SharedXDisplay::XEventHandler {
38 public: 38 public:
39 ScreenCapturerLinux(); 39 ScreenCapturerLinux();
40 virtual ~ScreenCapturerLinux(); 40 virtual ~ScreenCapturerLinux();
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 if (!options.x_display()) 435 if (!options.x_display())
436 return NULL; 436 return NULL;
437 437
438 rtc::scoped_ptr<ScreenCapturerLinux> capturer(new ScreenCapturerLinux()); 438 rtc::scoped_ptr<ScreenCapturerLinux> capturer(new ScreenCapturerLinux());
439 if (!capturer->Init(options)) 439 if (!capturer->Init(options))
440 capturer.reset(); 440 capturer.reset();
441 return capturer.release(); 441 return capturer.release();
442 } 442 }
443 443
444 } // namespace webrtc 444 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/desktop_capture/screen_capturer_mac.mm ('k') | webrtc/modules/desktop_capture/shared_desktop_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698