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

Unified Diff: remoting/base/capture_data.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 | « gfx/rect.cc ('k') | remoting/base/codec_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/capture_data.h
===================================================================
--- remoting/base/capture_data.h (revision 55264)
+++ remoting/base/capture_data.h (working copy)
@@ -9,13 +9,11 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
-#include "gfx/rect.h"
#include "remoting/base/protocol/chromotocol.pb.h"
+#include "remoting/base/types.h"
namespace remoting {
-typedef std::vector<gfx::Rect> RectVector;
-
struct DataPlanes {
static const int kPlaneCount = 3;
uint8* data[kPlaneCount];
@@ -45,7 +43,7 @@
// Get the list of updated rectangles in the last capture. The result is
// written into |rects|.
- const RectVector& dirty_rects() const { return dirty_rects_; }
+ const InvalidRects& dirty_rects() const { return dirty_rects_; }
// Get the width of the image captured.
int width() const { return width_; }
@@ -57,11 +55,11 @@
PixelFormat pixel_format() const { return pixel_format_; }
// Mutating methods.
- RectVector& mutable_dirty_rects() { return dirty_rects_; }
+ InvalidRects& mutable_dirty_rects() { return dirty_rects_; }
private:
const DataPlanes data_planes_;
- RectVector dirty_rects_;
+ InvalidRects dirty_rects_;
int width_;
int height_;
PixelFormat pixel_format_;
Property changes on: remoting\base\capture_data.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « gfx/rect.cc ('k') | remoting/base/codec_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698