OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
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 "SkColorFilter.h" | 8 #include "SkColorFilter.h" |
9 | 9 |
10 #include "SkReadBuffer.h" | 10 #include "SkReadBuffer.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 memcpy(d, s, count * sizeof(uint16_t)); | 33 memcpy(d, s, count * sizeof(uint16_t)); |
34 } | 34 } |
35 } | 35 } |
36 | 36 |
37 SkColor SkColorFilter::filterColor(SkColor c) const { | 37 SkColor SkColorFilter::filterColor(SkColor c) const { |
38 SkPMColor dst, src = SkPreMultiplyColor(c); | 38 SkPMColor dst, src = SkPreMultiplyColor(c); |
39 this->filterSpan(&src, 1, &dst); | 39 this->filterSpan(&src, 1, &dst); |
40 return SkUnPreMultiply::PMColorToColor(dst); | 40 return SkUnPreMultiply::PMColorToColor(dst); |
41 } | 41 } |
42 | 42 |
43 GrEffectRef* SkColorFilter::asNewEffect(GrContext*) const { | 43 GrEffect* SkColorFilter::asNewEffect(GrContext*) const { |
44 return NULL; | 44 return NULL; |
45 } | 45 } |
OLD | NEW |