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

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

Issue 811753003: Enable new gradients + suppress gms for now (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update ignore tests Created 6 years 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/effects/gradients/SkClampRange.h ('k') | tests/ClampRangeTest.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #include "SkClampRange.h" 10 #include "SkClampRange.h"
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 } 156 }
157 #endif 157 #endif
158 158
159 if (doSwap) { 159 if (doSwap) {
160 SkTSwap(fCount0, fCount2); 160 SkTSwap(fCount0, fCount2);
161 SkTSwap(fV0, fV1); 161 SkTSwap(fV0, fV1);
162 dx = -dx; 162 dx = -dx;
163 } 163 }
164 164
165 if (fCount1 > 0) { 165 if (fCount1 > 0) {
166 fFx1 = fx0 + fCount0 * (int)dx; 166 fFx1 = fx0 + fCount0 * dx;
167 } 167 }
168 168
169 if (dx > 0) { 169 if (dx > 0) {
170 fCount2 += extraCount; 170 fCount2 += extraCount;
171 } else { 171 } else {
172 fCount0 += extraCount; 172 fCount0 += extraCount;
173 } 173 }
174 } 174 }
OLDNEW
« no previous file with comments | « src/effects/gradients/SkClampRange.h ('k') | tests/ClampRangeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698