summaryrefslogtreecommitdiffstats
path: root/remoting/host/differ.h
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-11 18:00:57 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-11 18:00:57 +0000
commitc59d845257c5245a476ffd4284c506ef58fe008d (patch)
tree7d6db0a3b735ec3fb944ad902506d638aa1cf1dd /remoting/host/differ.h
parenteff69e3f36db0ed1e17281506cf315e51e07c2c3 (diff)
downloadchromium_src-c59d845257c5245a476ffd4284c506ef58fe008d.zip
chromium_src-c59d845257c5245a476ffd4284c506ef58fe008d.tar.gz
chromium_src-c59d845257c5245a476ffd4284c506ef58fe008d.tar.bz2
Revert 74571 - Use SSE2 block differ for chromoting
We have the SSE2 lying around in the tree just never being used. This will allow us to use it. A number of Windows bots have gone red in media_tests on the waterfall: http://build.chromium.org/p/chromium/builders/XP%20Tests%20%281%29 http://build.chromium.org/p/chromium/builders/XP%20Tests%20%281%29/builds/501/steps/media_unittests/logs/stdio This seems to be related to r74571. So am reverting to see. BUG=None TEST=Chromoting to a host machine and the diff will work correctly Review URL: http://codereview.chromium.org/6469022 TBR=hclam@chromium.org Review URL: http://codereview.chromium.org/6502002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74630 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/differ.h')
-rw-r--r--remoting/host/differ.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/remoting/host/differ.h b/remoting/host/differ.h
index 8386e7a..d227333 100644
--- a/remoting/host/differ.h
+++ b/remoting/host/differ.h
@@ -36,6 +36,12 @@ class Differ {
void MarkDirtyBlocks(const void* prev_buffer, const void* curr_buffer);
// Diff a small block of image and return non-zero if there is a diff.
+ // Currently, this just returns 0 or 1, but this may change in the future
+ // to return the number of pixels changed.
+ DiffInfo DiffBlock(const uint8* prev_buffer, const uint8* curr_buffer,
+ int stride);
+
+ // Diff a small block of image and return non-zero if there is a diff.
// This checks only the part of the block specified by the width and
// height parameters.
// This is much slower than DiffBlock() since it cannot assume that the