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

Unified Diff: remoting/capturer/differ_block.cc

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/capturer/differ_block.h ('k') | remoting/capturer/differ_block_sse2.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/capturer/differ_block.cc
diff --git a/remoting/capturer/differ_block.cc b/remoting/capturer/differ_block.cc
deleted file mode 100644
index 1386ba7e510e55b936c9c4329c27d93b3648d766..0000000000000000000000000000000000000000
--- a/remoting/capturer/differ_block.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "remoting/capturer/differ_block.h"
-
-#include "base/cpu.h"
-#include "build/build_config.h"
-#include "remoting/capturer/differ_block_sse2.h"
-
-namespace remoting {
-
-int BlockDifference_C(const uint8* image1, const uint8* image2, int stride) {
- int width_bytes = kBlockSize * kBytesPerPixel;
-
- for (int y = 0; y < kBlockSize; y++) {
- if (memcmp(image1, image2, width_bytes) != 0)
- return 1;
- image1 += stride;
- image2 += stride;
- }
- return 0;
-}
-
-int BlockDifference(const uint8* image1, const uint8* image2, int stride) {
- static int (*diff_proc)(const uint8*, const uint8*, int) = NULL;
-
- if (!diff_proc) {
-#if defined(ARCH_CPU_ARM_FAMILY)
- // For ARM processors, always use C version.
- // TODO(hclam): Implement a NEON version.
- diff_proc = &BlockDifference_C;
-#else
- base::CPU cpu;
- // For x86 processors, check if SSE2 is supported.
- if (cpu.has_sse2() && kBlockSize == 32) {
- diff_proc = &BlockDifference_SSE2_W32;
- } else if (cpu.has_sse2() && kBlockSize == 16) {
- diff_proc = &BlockDifference_SSE2_W16;
- } else {
- diff_proc = &BlockDifference_C;
- }
-#endif
- }
-
- return diff_proc(image1, image2, stride);
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/capturer/differ_block.h ('k') | remoting/capturer/differ_block_sse2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698