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 #include "remoting/host/linux/x_server_pixel_buffer.h" | 5 #include "remoting/capturer/linux/x_server_pixel_buffer.h" |
6 | 6 |
7 #include <sys/shm.h> | 7 #include <sys/shm.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 | 10 |
11 #if defined(TOOLKIT_GTK) | 11 #if defined(TOOLKIT_GTK) |
12 #include <gdk/gdk.h> | 12 #include <gdk/gdk.h> |
13 #else // !defined(TOOLKIT_GTK) | 13 #else // !defined(TOOLKIT_GTK) |
14 #include <X11/Xlib.h> | 14 #include <X11/Xlib.h> |
15 #endif // !defined(TOOLKIT_GTK) | 15 #endif // !defined(TOOLKIT_GTK) |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 | 256 |
257 int XServerPixelBuffer::GetGreenShift() const { | 257 int XServerPixelBuffer::GetGreenShift() const { |
258 return ffs(x_image_->green_mask) - 1; | 258 return ffs(x_image_->green_mask) - 1; |
259 } | 259 } |
260 | 260 |
261 bool XServerPixelBuffer::IsRgb() const { | 261 bool XServerPixelBuffer::IsRgb() const { |
262 return GetRedShift() == 16 && GetGreenShift() == 8 && GetBlueShift() == 0; | 262 return GetRedShift() == 16 && GetGreenShift() == 8 && GetBlueShift() == 0; |
263 } | 263 } |
264 | 264 |
265 } // namespace remoting | 265 } // namespace remoting |
OLD | NEW |