OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2012 The Android Open Source Project | 2 * Copyright 2012 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 * Functions to transform scanlines between packed-pixel formats. | 9 * Functions to transform scanlines between packed-pixel formats. |
11 */ | 10 */ |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 r = SkUnPreMultiply::ApplyScale(scale, r); | 130 r = SkUnPreMultiply::ApplyScale(scale, r); |
132 g = SkUnPreMultiply::ApplyScale(scale, g); | 131 g = SkUnPreMultiply::ApplyScale(scale, g); |
133 b = SkUnPreMultiply::ApplyScale(scale, b); | 132 b = SkUnPreMultiply::ApplyScale(scale, b); |
134 } | 133 } |
135 *dst++ = r; | 134 *dst++ = r; |
136 *dst++ = g; | 135 *dst++ = g; |
137 *dst++ = b; | 136 *dst++ = b; |
138 *dst++ = a; | 137 *dst++ = a; |
139 } | 138 } |
140 } | 139 } |
OLD | NEW |