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

Unified Diff: remoting/base/capture_data.h

Issue 7622002: Revert 96327 - Switch over to using SkRegions to calculate dirty areas. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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/DEPS ('k') | remoting/base/capture_data.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 96327)
+++ remoting/base/capture_data.h (working copy)
@@ -10,8 +10,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "media/base/video_frame.h"
-#include "third_party/skia/include/core/SkRegion.h"
-#include "ui/gfx/size.h"
+#include "remoting/base/types.h"
namespace remoting {
@@ -31,11 +30,12 @@
const gfx::Size& size,
media::VideoFrame::Format format);
- // Get the data_planes data of the previous capture.
+ // Get the data_planes data of the last capture.
const DataPlanes& data_planes() const { return data_planes_; }
- // Get the dirty region from the previous capture.
- const SkRegion& dirty_region() const { return dirty_region_; }
+ // Get the list of updated rectangles in the last capture. The result is
+ // written into |rects|.
+ const InvalidRects& dirty_rects() const { return dirty_rects_; }
// Return the size of the image captured.
gfx::Size size() const { return size_; }
@@ -44,7 +44,7 @@
media::VideoFrame::Format pixel_format() const { return pixel_format_; }
// Mutating methods.
- SkRegion& mutable_dirty_region() { return dirty_region_; }
+ InvalidRects& mutable_dirty_rects() { return dirty_rects_; }
// Return the time spent on capturing.
int capture_time_ms() const { return capture_time_ms_; }
@@ -62,7 +62,7 @@
private:
const DataPlanes data_planes_;
- SkRegion dirty_region_;
+ InvalidRects dirty_rects_;
gfx::Size size_;
media::VideoFrame::Format pixel_format_;
« no previous file with comments | « remoting/DEPS ('k') | remoting/base/capture_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698