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

Side by Side Diff: remoting/host/capturer_linux.cc

Issue 6992007: Fix InvalidateFullScreen() for the full-screen-polling case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698