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

Unified Diff: remoting/host/differ_block_sse2.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.cc ('k') | remoting/host/differ_block_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/differ_block_sse2.cc
diff --git a/remoting/host/differ_block_sse2.cc b/remoting/host/differ_block_sse2.cc
index c0cc3b6b2bbcbc2a7c2b428d57e960c1d3c640b7..67e571c88419768ee12e7f6351682b5f35956776 100644
--- a/remoting/host/differ_block_sse2.cc
+++ b/remoting/host/differ_block_sse2.cc
@@ -20,7 +20,7 @@ extern int BlockDifference_SSE2_W16(const uint8* image1, const uint8* image2,
__m128i v0;
__m128i v1;
__m128i sad;
- for (int y = 0; y < kBlockHeight; ++y) {
+ for (int y = 0; y < kBlockSize; ++y) {
const __m128i* i1 = reinterpret_cast<const __m128i*>(image1);
const __m128i* i2 = reinterpret_cast<const __m128i*>(image2);
v0 = _mm_loadu_si128(i1);
@@ -59,7 +59,7 @@ extern int BlockDifference_SSE2_W32(const uint8* image1, const uint8* image2,
__m128i v0;
__m128i v1;
__m128i sad;
- for (int y = 0; y < kBlockHeight; ++y) {
+ for (int y = 0; y < kBlockSize; ++y) {
const __m128i* i1 = reinterpret_cast<const __m128i*>(image1);
const __m128i* i2 = reinterpret_cast<const __m128i*>(image2);
v0 = _mm_loadu_si128(i1);
« no previous file with comments | « remoting/host/differ_block.cc ('k') | remoting/host/differ_block_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698