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

Unified Diff: remoting/host/differ_block.h

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.cc ('k') | remoting/host/differ_block.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/differ_block.h
diff --git a/remoting/host/differ_block.h b/remoting/host/differ_block.h
index 9c038144b4d243e332b802db7ca951ef886448e2..4f78960e9e525d2a10ae209e06cd17309a9fc111 100644
--- a/remoting/host/differ_block.h
+++ b/remoting/host/differ_block.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -9,9 +9,11 @@
namespace remoting {
-// Block size and format (BGRA 32 bit) are fixed.
-static const int kBlockWidth = 32;
-static const int kBlockHeight = 32;
+// Size (in pixels) of each square block used for diffing.
+// This must be a multiple of sizeof(uint64)/8.
+static const int kBlockSize = 32;
+
+// Format: BGRA 32 bit.
static const int kBytesPerPixel = 4;
// Low level functions to compare 2 blocks of pixels.
« no previous file with comments | « remoting/host/differ.cc ('k') | remoting/host/differ_block.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698