Index: remoting/capturer/differ_block.cc |
diff --git a/remoting/host/differ_block.cc b/remoting/capturer/differ_block.cc |
similarity index 84% |
rename from remoting/host/differ_block.cc |
rename to remoting/capturer/differ_block.cc |
index 3e0b12cfc51066079c14ccc8cec75c13d677a100..1386ba7e510e55b936c9c4329c27d93b3648d766 100644 |
--- a/remoting/host/differ_block.cc |
+++ b/remoting/capturer/differ_block.cc |
@@ -2,11 +2,11 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "remoting/host/differ_block.h" |
+#include "remoting/capturer/differ_block.h" |
#include "base/cpu.h" |
#include "build/build_config.h" |
-#include "remoting/host/differ_block_internal.h" |
+#include "remoting/capturer/differ_block_sse2.h" |
namespace remoting { |
@@ -33,12 +33,13 @@ int BlockDifference(const uint8* image1, const uint8* image2, int stride) { |
#else |
base::CPU cpu; |
// For x86 processors, check if SSE2 is supported. |
- if (cpu.has_sse2() && kBlockSize == 32) |
+ if (cpu.has_sse2() && kBlockSize == 32) { |
diff_proc = &BlockDifference_SSE2_W32; |
- else if (cpu.has_sse2() && kBlockSize == 16) |
+ } else if (cpu.has_sse2() && kBlockSize == 16) { |
diff_proc = &BlockDifference_SSE2_W16; |
- else |
+ } else { |
diff_proc = &BlockDifference_C; |
+ } |
#endif |
} |