OLD | NEW |
1 // Copyright (c) 2011 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_X_SERVER_PIXEL_BUFFER_H_ | 7 #ifndef REMOTING_HOST_X_SERVER_PIXEL_BUFFER_H_ |
8 #define REMOTING_HOST_X_SERVER_PIXEL_BUFFER_H_ | 8 #define REMOTING_HOST_X_SERVER_PIXEL_BUFFER_H_ |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "third_party/skia/include/core/SkRect.h" | 11 #include "third_party/skia/include/core/SkRect.h" |
13 | 12 |
14 #include <X11/Xutil.h> | 13 #include <X11/Xutil.h> |
15 #include <X11/extensions/XShm.h> | 14 #include <X11/extensions/XShm.h> |
16 | 15 |
17 namespace remoting { | 16 namespace remoting { |
18 | 17 |
19 // 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 |
20 // as possible. | 19 // as possible. |
21 class XServerPixelBuffer { | 20 class XServerPixelBuffer { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 XShmSegmentInfo* shm_segment_info_; | 62 XShmSegmentInfo* shm_segment_info_; |
64 Pixmap shm_pixmap_; | 63 Pixmap shm_pixmap_; |
65 GC shm_gc_; | 64 GC shm_gc_; |
66 | 65 |
67 DISALLOW_COPY_AND_ASSIGN(XServerPixelBuffer); | 66 DISALLOW_COPY_AND_ASSIGN(XServerPixelBuffer); |
68 }; | 67 }; |
69 | 68 |
70 } // namespace remoting | 69 } // namespace remoting |
71 | 70 |
72 #endif // REMOTING_HOST_X_SERVER_PIXEL_BUFFER_H_ | 71 #endif // REMOTING_HOST_X_SERVER_PIXEL_BUFFER_H_ |
OLD | NEW |