| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "remoting/host/capturer.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 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 void CapturerLinux::InvalidateRects(const InvalidRects& inval_rects) { | 256 void CapturerLinux::InvalidateRects(const InvalidRects& inval_rects) { |
| 257 helper_.InvalidateRects(inval_rects); | 257 helper_.InvalidateRects(inval_rects); |
| 258 } | 258 } |
| 259 | 259 |
| 260 void CapturerLinux::InvalidateScreen(const gfx::Size& size) { | 260 void CapturerLinux::InvalidateScreen(const gfx::Size& size) { |
| 261 helper_.InvalidateScreen(size); | 261 helper_.InvalidateScreen(size); |
| 262 } | 262 } |
| 263 | 263 |
| 264 void CapturerLinux::InvalidateFullScreen() { | 264 void CapturerLinux::InvalidateFullScreen() { |
| 265 helper_.InvalidateFullScreen(); | 265 helper_.InvalidateFullScreen(); |
| 266 last_buffer_ = NULL; |
| 266 } | 267 } |
| 267 | 268 |
| 268 void CapturerLinux::CaptureInvalidRects( | 269 void CapturerLinux::CaptureInvalidRects( |
| 269 CaptureCompletedCallback* callback) { | 270 CaptureCompletedCallback* callback) { |
| 270 scoped_ptr<CaptureCompletedCallback> callback_deleter(callback); | 271 scoped_ptr<CaptureCompletedCallback> callback_deleter(callback); |
| 271 | 272 |
| 272 // TODO(lambroslambrou): In the non-DAMAGE case, there should be no need | 273 // TODO(lambroslambrou): In the non-DAMAGE case, there should be no need |
| 273 // for any X event processing in this class. | 274 // for any X event processing in this class. |
| 274 ProcessPendingXEvents(); | 275 ProcessPendingXEvents(); |
| 275 | 276 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 } | 505 } |
| 505 | 506 |
| 506 } // namespace | 507 } // namespace |
| 507 | 508 |
| 508 // static | 509 // static |
| 509 Capturer* Capturer::Create() { | 510 Capturer* Capturer::Create() { |
| 510 return new CapturerLinux(); | 511 return new CapturerLinux(); |
| 511 } | 512 } |
| 512 | 513 |
| 513 } // namespace remoting | 514 } // namespace remoting |
| OLD | NEW |