| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |