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

Side by Side Diff: src/effects/gradients/SkClampRange.cpp

Issue 2041943002: SkLeanWindows.h: #include "Windows.h" fewer places (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2016-06-07 (Tuesday) 11:28:42 EDT Created 4 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 unified diff | Download patch
« no previous file with comments | « src/core/SkTime.cpp ('k') | src/gpu/GrGpu.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 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * 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
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkClampRange.h" 8 #include "SkClampRange.h"
9 #include "SkMath.h" 9 #include "SkMathPriv.h"
10 10
11 static int SkCLZ64(uint64_t value) { 11 static int SkCLZ64(uint64_t value) {
12 int count = 0; 12 int count = 0;
13 if (value >> 32) { 13 if (value >> 32) {
14 value >>= 32; 14 value >>= 32;
15 } else { 15 } else {
16 count += 32; 16 count += 32;
17 } 17 }
18 return count + SkCLZ(SkToU32(value)); 18 return count + SkCLZ(SkToU32(value));
19 } 19 }
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 if (doSwap) { 149 if (doSwap) {
150 SkTSwap(fCount0, fCount2); 150 SkTSwap(fCount0, fCount2);
151 SkTSwap(fV0, fV1); 151 SkTSwap(fV0, fV1);
152 dx = -dx; 152 dx = -dx;
153 } 153 }
154 154
155 if (fCount1 > 0) { 155 if (fCount1 > 0) {
156 fFx1 = fx0 + fCount0 * dx; 156 fFx1 = fx0 + fCount0 * dx;
157 } 157 }
158 } 158 }
OLDNEW
« no previous file with comments | « src/core/SkTime.cpp ('k') | src/gpu/GrGpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698