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

Unified Diff: remoting/host/differ_unittest.cc

Issue 6501005: Resubmit - Use SSE2 block differ for chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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_sse2.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/differ_unittest.cc
diff --git a/remoting/host/differ_unittest.cc b/remoting/host/differ_unittest.cc
index f6156f3e22f236d77cd187826ca0857cb7df7213..1728a7344f5f41d42f4291cf04c933383fd48889 100644
--- a/remoting/host/differ_unittest.cc
+++ b/remoting/host/differ_unittest.cc
@@ -4,14 +4,14 @@
#include "base/scoped_ptr.h"
#include "remoting/host/differ.h"
+#include "remoting/host/differ_block.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace remoting {
-// 96x96 screen gives a 3x3 grid of blocks.
+// 96x96 screen gives a 4x4 grid of blocks.
const int kScreenWidth= 96;
const int kScreenHeight = 96;
-const int kBytesPerPixel = 3;
const int kBytesPerRow = (kBytesPerPixel * kScreenWidth);
class DifferTest : public testing::Test {
@@ -50,9 +50,9 @@ class DifferTest : public testing::Test {
// Offset from upper-left of buffer to upper-left of requested block.
int block_offset = ((block_y * stride_) + (block_x * bytes_per_pixel_))
* kBlockSize;
- return differ_->DiffBlock(prev_.get() + block_offset,
- curr_.get() + block_offset,
- stride_);
+ return BlockDifference(prev_.get() + block_offset,
+ curr_.get() + block_offset,
+ stride_);
}
// Write the pixel |value| into the specified block in the |buffer|.
« no previous file with comments | « remoting/host/differ_block_sse2.cc ('k') | remoting/remoting.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698