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

Unified Diff: remoting/base/util.cc

Issue 9568048: Allow the Chromoting client plugin to support up-scaling, albeit slowly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 8 years, 6 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/base/util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/util.cc
diff --git a/remoting/base/util.cc b/remoting/base/util.cc
index efc27d0557f0c5cedce141946d779692278d3270..77b1c5d8013a493f5696548f242dc1bf2edf0775 100644
--- a/remoting/base/util.cc
+++ b/remoting/base/util.cc
@@ -30,17 +30,16 @@ std::string GetTimestampString() {
tex.hour, tex.minute, tex.second);
}
-// Helper methods to calculate plane offset given the coordinates.
-static int CalculateRGBOffset(int x, int y, int stride) {
+int CalculateRGBOffset(int x, int y, int stride) {
return stride * y + kBytesPerPixelRGB32 * x;
}
-static int CalculateYOffset(int x, int y, int stride) {
+int CalculateYOffset(int x, int y, int stride) {
DCHECK(((x & 1) == 0) && ((y & 1) == 0));
return stride * y + x;
}
-static int CalculateUVOffset(int x, int y, int stride) {
+int CalculateUVOffset(int x, int y, int stride) {
DCHECK(((x & 1) == 0) && ((y & 1) == 0));
return stride * y / 2 + x / 2;
}
« no previous file with comments | « remoting/base/util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698