| OLD | NEW | 
|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/capturer_linux.h" | 5 #include "remoting/host/capturer_linux.h" | 
| 6 | 6 | 
| 7 #include <X11/Xlib.h> | 7 #include <X11/Xlib.h> | 
| 8 #include <X11/Xutil.h> | 8 #include <X11/Xutil.h> | 
| 9 #include <X11/extensions/Xdamage.h> | 9 #include <X11/extensions/Xdamage.h> | 
| 10 | 10 | 
| 11 #include <set> | 11 #include <set> | 
| 12 | 12 | 
| 13 #include "base/logging.h" |  | 
| 14 #include "remoting/base/types.h" | 13 #include "remoting/base/types.h" | 
| 15 | 14 | 
| 16 namespace remoting { | 15 namespace remoting { | 
| 17 | 16 | 
| 18 static int IndexOfLowestBit(unsigned int mask) { | 17 static int IndexOfLowestBit(unsigned int mask) { | 
| 19   int i = 0; | 18   int i = 0; | 
| 20 | 19 | 
| 21   // Extra-special do-while premature optimization, just to make dmaclach@ | 20   // Extra-special do-while premature optimization, just to make dmaclach@ | 
| 22   // happy. | 21   // happy. | 
| 23   do { | 22   do { | 
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 339     } | 338     } | 
| 340   } | 339   } | 
| 341 } | 340 } | 
| 342 | 341 | 
| 343 // static | 342 // static | 
| 344 Capturer* Capturer::Create(MessageLoop* message_loop) { | 343 Capturer* Capturer::Create(MessageLoop* message_loop) { | 
| 345   return new CapturerLinux(message_loop); | 344   return new CapturerLinux(message_loop); | 
| 346 } | 345 } | 
| 347 | 346 | 
| 348 }  // namespace remoting | 347 }  // namespace remoting | 
| OLD | NEW | 
|---|