Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(357)

Side by Side Diff: remoting/capturer/linux/x_server_pixel_buffer.cc

Issue 11470028: Move screen capturers to remoting/capturer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698