OLD | NEW |
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 // Don't include this file in any .h files because it pulls in some X headers. | 11 // Don't include this file in any .h files because it pulls in some X headers. |
12 | 12 |
13 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_X11_X_SERVER_PIXEL_BUFFER_H_ | 13 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_X11_X_SERVER_PIXEL_BUFFER_H_ |
14 #define WEBRTC_MODULES_DESKTOP_CAPTURE_X11_X_SERVER_PIXEL_BUFFER_H_ | 14 #define WEBRTC_MODULES_DESKTOP_CAPTURE_X11_X_SERVER_PIXEL_BUFFER_H_ |
15 | 15 |
| 16 #include "webrtc/base/constructormagic.h" |
16 #include "webrtc/modules/desktop_capture/desktop_geometry.h" | 17 #include "webrtc/modules/desktop_capture/desktop_geometry.h" |
17 | 18 |
18 #include <X11/Xutil.h> | 19 #include <X11/Xutil.h> |
19 #include <X11/extensions/XShm.h> | 20 #include <X11/extensions/XShm.h> |
20 | 21 |
21 namespace webrtc { | 22 namespace webrtc { |
22 | 23 |
23 class DesktopFrame; | 24 class DesktopFrame; |
24 | 25 |
25 // A class to allow the X server's pixel buffer to be accessed as efficiently | 26 // A class to allow the X server's pixel buffer to be accessed as efficiently |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 XShmSegmentInfo* shm_segment_info_; | 77 XShmSegmentInfo* shm_segment_info_; |
77 Pixmap shm_pixmap_; | 78 Pixmap shm_pixmap_; |
78 GC shm_gc_; | 79 GC shm_gc_; |
79 | 80 |
80 RTC_DISALLOW_COPY_AND_ASSIGN(XServerPixelBuffer); | 81 RTC_DISALLOW_COPY_AND_ASSIGN(XServerPixelBuffer); |
81 }; | 82 }; |
82 | 83 |
83 } // namespace webrtc | 84 } // namespace webrtc |
84 | 85 |
85 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_X11_X_SERVER_PIXEL_BUFFER_H_ | 86 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_X11_X_SERVER_PIXEL_BUFFER_H_ |
OLD | NEW |