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

Unified Diff: remoting/host/differ_block.cc

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: update copyright 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_block.h ('k') | remoting/host/differ_block_sse2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/differ_block.cc
diff --git a/remoting/host/differ_block.cc b/remoting/host/differ_block.cc
index 40c0c7933b5940b30197c0959750d2c43f159bfd..a8da5b92bd270640ec965e416b580632d3378e47 100644
--- a/remoting/host/differ_block.cc
+++ b/remoting/host/differ_block.cc
@@ -11,9 +11,9 @@
namespace remoting {
int BlockDifference_C(const uint8* image1, const uint8* image2, int stride) {
- int width_bytes = kBlockWidth * kBytesPerPixel;
+ int width_bytes = kBlockSize * kBytesPerPixel;
- for (int y = 0; y < kBlockHeight; y++) {
+ for (int y = 0; y < kBlockSize; y++) {
if (memcmp(image1, image2, width_bytes) != 0)
return 1;
image1 += stride;
@@ -32,9 +32,9 @@ int BlockDifference(const uint8* image1, const uint8* image2, int stride) {
diff_proc = &BlockDifference_C;
#else
// For x86 processors, check if SSE2 is supported.
- if (media::hasSSE2() && kBlockWidth == 32)
+ if (media::hasSSE2() && kBlockSize == 32)
diff_proc = &BlockDifference_SSE2_W32;
- else if (media::hasSSE2() && kBlockWidth == 16)
+ else if (media::hasSSE2() && kBlockSize == 16)
diff_proc = &BlockDifference_SSE2_W16;
else
diff_proc = &BlockDifference_C;
« no previous file with comments | « remoting/host/differ_block.h ('k') | remoting/host/differ_block_sse2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698