| 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_CAPTURER_LINUX_X_SERVER_PIXEL_BUFFER_H_ | 7 #ifndef MEDIA_VIDEO_CAPTURE_SCREEN_LINUX_X_SERVER_PIXEL_BUFFER_H_ |
| 8 #define REMOTING_CAPTURER_LINUX_X_SERVER_PIXEL_BUFFER_H_ | 8 #define MEDIA_VIDEO_CAPTURE_SCREEN_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 media { |
| 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 |
| 19 // as possible. | 19 // as possible. |
| 20 class XServerPixelBuffer { | 20 class XServerPixelBuffer { |
| 21 public: | 21 public: |
| 22 XServerPixelBuffer(); | 22 XServerPixelBuffer(); |
| 23 ~XServerPixelBuffer(); | 23 ~XServerPixelBuffer(); |
| 24 | 24 |
| 25 void Release(); | 25 void Release(); |
| 26 | 26 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 Window root_window_; | 70 Window root_window_; |
| 71 SkISize root_window_size_; | 71 SkISize root_window_size_; |
| 72 XImage* x_image_; | 72 XImage* x_image_; |
| 73 XShmSegmentInfo* shm_segment_info_; | 73 XShmSegmentInfo* shm_segment_info_; |
| 74 Pixmap shm_pixmap_; | 74 Pixmap shm_pixmap_; |
| 75 GC shm_gc_; | 75 GC shm_gc_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(XServerPixelBuffer); | 77 DISALLOW_COPY_AND_ASSIGN(XServerPixelBuffer); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace remoting | 80 } // namespace media |
| 81 | 81 |
| 82 #endif // REMOTING_CAPTURER_LINUX_X_SERVER_PIXEL_BUFFER_H_ | 82 #endif // MEDIA_VIDEO_CAPTURE_SCREEN_LINUX_X_SERVER_PIXEL_BUFFER_H_ |
| OLD | NEW |