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

Side by Side Diff: src/core/SkScalar.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
« no previous file with comments | « src/core/SkRegionPriv.h ('k') | src/core/SkScalerContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1
2 /* 1 /*
3 * Copyright 2010 The Android Open Source Project 2 * Copyright 2010 The Android Open Source Project
4 * 3 *
5 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
8 7
9 8
10 #include "SkMath.h" 9 #include "SkMath.h"
11 #include "SkScalar.h" 10 #include "SkScalar.h"
(...skipping 15 matching lines...) Expand all
27 if (length == right) 26 if (length == right)
28 return values[length-1]; 27 return values[length-1];
29 if (0 == right) 28 if (0 == right)
30 return values[0]; 29 return values[0];
31 // Otherwise, interpolate between right - 1 and right. 30 // Otherwise, interpolate between right - 1 and right.
32 SkScalar rightKey = keys[right]; 31 SkScalar rightKey = keys[right];
33 SkScalar leftKey = keys[right-1]; 32 SkScalar leftKey = keys[right-1];
34 SkScalar fract = (searchKey - leftKey) / (rightKey - leftKey); 33 SkScalar fract = (searchKey - leftKey) / (rightKey - leftKey);
35 return SkScalarInterp(values[right-1], values[right], fract); 34 return SkScalarInterp(values[right-1], values[right], fract);
36 } 35 }
OLDNEW
« no previous file with comments | « src/core/SkRegionPriv.h ('k') | src/core/SkScalerContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698