| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "SkLerpXfermode.h" | 8 #include "SkLerpXfermode.h" |
| 9 #include "SkColorPriv.h" | 9 #include "SkColorPriv.h" |
| 10 #include "SkReadBuffer.h" | 10 #include "SkReadBuffer.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 dst[i] = resA; | 97 dst[i] = resA; |
| 98 } | 98 } |
| 99 } | 99 } |
| 100 } else { | 100 } else { |
| 101 for (int i = 0; i < count; ++i) { | 101 for (int i = 0; i < count; ++i) { |
| 102 dst[i] = SkAlphaBlend(SkGetPackedA32(src[i]), dst[i], scale); | 102 dst[i] = SkAlphaBlend(SkGetPackedA32(src[i]), dst[i], scale); |
| 103 } | 103 } |
| 104 } | 104 } |
| 105 } | 105 } |
| 106 | 106 |
| 107 #ifdef SK_DEVELOPER | 107 #ifndef SK_IGNORE_TO_STRING |
| 108 void SkLerpXfermode::toString(SkString* str) const { | 108 void SkLerpXfermode::toString(SkString* str) const { |
| 109 str->printf("SkLerpXfermode: scale: %g", fScale256 / 256.0); | 109 str->printf("SkLerpXfermode: scale: %g", fScale256 / 256.0); |
| 110 } | 110 } |
| 111 #endif | 111 #endif |
| OLD | NEW |