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

Unified Diff: remoting/host/capturer_gdi.h

Issue 3013015: Initial pass at integrating Differ into the chromoting host code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/capturer_fake_ascii.cc ('k') | remoting/host/capturer_gdi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/capturer_gdi.h
===================================================================
--- remoting/host/capturer_gdi.h (revision 55264)
+++ remoting/host/capturer_gdi.h (working copy)
@@ -12,6 +12,8 @@
namespace remoting {
+class Differ;
+
// CapturerGdi captures 32bit RGB using GDI.
//
// CapturerGdi is doubled buffered as required by Capturer. See
@@ -21,11 +23,13 @@
CapturerGdi();
virtual ~CapturerGdi();
- virtual void CaptureRects(const RectVector& rects,
- CaptureCompletedCallback* callback);
virtual void ScreenConfigurationChanged();
private:
+ virtual void CalculateInvalidRects();
+ virtual void CaptureRects(const InvalidRects& rects,
+ CaptureCompletedCallback* callback);
+
void ReleaseBuffers();
// Generates an image in the current buffer.
void CaptureImage();
@@ -38,6 +42,12 @@
// We have two buffers for the screen images as required by Capturer.
void* buffers_[kNumBuffers];
+ // Class to calculate the difference between two screen bitmaps.
+ scoped_ptr<Differ> differ_;
+
+ // True if we should force a fullscreen capture.
+ bool capture_fullscreen_;
+
DISALLOW_COPY_AND_ASSIGN(CapturerGdi);
};
« no previous file with comments | « remoting/host/capturer_fake_ascii.cc ('k') | remoting/host/capturer_gdi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698