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

Unified Diff: remoting/base/util.cc

Issue 7491070: Switch over to using SkRegions to calculate dirty areas. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up comments 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
Index: remoting/base/util.cc
diff --git a/remoting/base/util.cc b/remoting/base/util.cc
index 8671eebf0c000d52dcdc7fbc52b353d46fa0b29e..483d97fae0861e86e051546172f173a998c2b295 100644
--- a/remoting/base/util.cc
+++ b/remoting/base/util.cc
@@ -161,11 +161,11 @@ void CopyRect(const uint8* src_plane,
uint8* dest_plane,
int dest_plane_stride,
int bytes_per_pixel,
- const gfx::Rect& rect) {
+ const SkIRect& rect) {
// Get the address of the starting point.
- const int src_y_offset = src_plane_stride * rect.y();
- const int dest_y_offset = dest_plane_stride * rect.y();
- const int x_offset = bytes_per_pixel * rect.x();
+ const int src_y_offset = src_plane_stride * rect.fTop;
+ const int dest_y_offset = dest_plane_stride * rect.fTop;
+ const int x_offset = bytes_per_pixel * rect.fLeft;
src_plane += src_y_offset + x_offset;
dest_plane += dest_y_offset + x_offset;

Powered by Google App Engine
This is Rietveld 408576698