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

Unified Diff: remoting/host/differ_block.h

Issue 7511014: Define Chromoting's differ block size in one (and only one) place. (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/host/differ.cc ('k') | remoting/host/differ_block.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/differ_block.h
diff --git a/remoting/host/differ_block.h b/remoting/host/differ_block.h
index 9c038144b4d243e332b802db7ca951ef886448e2..9046cc9909114969e7e02659054569067dc44924 100644
--- a/remoting/host/differ_block.h
+++ b/remoting/host/differ_block.h
@@ -9,9 +9,11 @@
namespace remoting {
-// Block size and format (BGRA 32 bit) are fixed.
-static const int kBlockWidth = 32;
-static const int kBlockHeight = 32;
+// Size (in pixels) of each square block used for diffing.
+// This must be a multiple of sizeof(uint64).
Sergey Ulanov 2011/08/04 18:21:41 nit: s/sizeof(uint64)/8/
garykac 2011/08/04 20:07:55 Done.
+static const int kBlockSize = 32;
+
+// Format: BGRA 32 bit.
static const int kBytesPerPixel = 4;
// Low level functions to compare 2 blocks of pixels.
« no previous file with comments | « remoting/host/differ.cc ('k') | remoting/host/differ_block.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698