OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Don't include this file in any .h files because it pulls in some X headers. | 5 // Don't include this file in any .h files because it pulls in some X headers. |
6 | 6 |
7 #ifndef REMOTING_HOST_LINUX_X_SERVER_PIXEL_BUFFER_H_ | 7 #ifndef REMOTING_CAPTURER_LINUX_X_SERVER_PIXEL_BUFFER_H_ |
8 #define REMOTING_HOST_LINUX_X_SERVER_PIXEL_BUFFER_H_ | 8 #define REMOTING_CAPTURER_LINUX_X_SERVER_PIXEL_BUFFER_H_ |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "third_party/skia/include/core/SkRect.h" | 11 #include "third_party/skia/include/core/SkRect.h" |
12 | 12 |
13 #include <X11/Xutil.h> | 13 #include <X11/Xutil.h> |
14 #include <X11/extensions/XShm.h> | 14 #include <X11/extensions/XShm.h> |
15 | 15 |
16 namespace remoting { | 16 namespace remoting { |
17 | 17 |
18 // A class to allow the X server's pixel buffer to be accessed as efficiently | 18 // A class to allow the X server's pixel buffer to be accessed as efficiently |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 XImage* x_image_; | 61 XImage* x_image_; |
62 XShmSegmentInfo* shm_segment_info_; | 62 XShmSegmentInfo* shm_segment_info_; |
63 Pixmap shm_pixmap_; | 63 Pixmap shm_pixmap_; |
64 GC shm_gc_; | 64 GC shm_gc_; |
65 | 65 |
66 DISALLOW_COPY_AND_ASSIGN(XServerPixelBuffer); | 66 DISALLOW_COPY_AND_ASSIGN(XServerPixelBuffer); |
67 }; | 67 }; |
68 | 68 |
69 } // namespace remoting | 69 } // namespace remoting |
70 | 70 |
71 #endif // REMOTING_HOST_LINUX_X_SERVER_PIXEL_BUFFER_H_ | 71 #endif // REMOTING_CAPTURER_LINUX_X_SERVER_PIXEL_BUFFER_H_ |
OLD | NEW |