| OLD | NEW |
| 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 "SkBitmapCache.h" | 8 #include "SkBitmapCache.h" |
| 9 #include "SkBitmapController.h" | 9 #include "SkBitmapController.h" |
| 10 #include "SkBitmapProcState.h" | 10 #include "SkBitmapProcState.h" |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 817 *dst++ = src[index]; | 817 *dst++ = src[index]; |
| 818 fx += dx; | 818 fx += dx; |
| 819 } | 819 } |
| 820 } else { | 820 } else { |
| 821 for (int i = 0; i < count; ++i) { | 821 for (int i = 0; i < count; ++i) { |
| 822 dst[i] = src[SkClampMax(SkFractionalIntToInt(fx), maxX)]; | 822 dst[i] = src[SkClampMax(SkFractionalIntToInt(fx), maxX)]; |
| 823 fx += dx; | 823 fx += dx; |
| 824 } | 824 } |
| 825 } | 825 } |
| 826 } | 826 } |
| 827 | |
| OLD | NEW |