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 #include "webrtc/rtc_base/constructormagic.h" | |
18 | 18 |
19 #include <X11/Xutil.h> | 19 #include <X11/Xutil.h> |
20 #include <X11/extensions/XShm.h> | 20 #include <X11/extensions/XShm.h> |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 class DesktopFrame; | 24 class DesktopFrame; |
25 | 25 |
26 // 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 |
27 // as possible. | 27 // as possible. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 Pixmap shm_pixmap_ = 0; | 72 Pixmap shm_pixmap_ = 0; |
73 GC shm_gc_ = nullptr; | 73 GC shm_gc_ = nullptr; |
74 bool xshm_get_image_succeeded_ = false; | 74 bool xshm_get_image_succeeded_ = false; |
75 | 75 |
76 RTC_DISALLOW_COPY_AND_ASSIGN(XServerPixelBuffer); | 76 RTC_DISALLOW_COPY_AND_ASSIGN(XServerPixelBuffer); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace webrtc | 79 } // namespace webrtc |
80 | 80 |
81 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_X11_X_SERVER_PIXEL_BUFFER_H_ | 81 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_X11_X_SERVER_PIXEL_BUFFER_H_ |
OLD | NEW |