OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
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 "SkBlitter.h" | 10 #include "SkBlitter.h" |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 SkFastMin32(SkAlphaMul(r, mul) + add, a), | 658 SkFastMin32(SkAlphaMul(r, mul) + add, a), |
659 SkFastMin32(SkAlphaMul(g, mul) + add, a), | 659 SkFastMin32(SkAlphaMul(g, mul) + add, a), |
660 SkFastMin32(SkAlphaMul(b, mul) + add, a)); | 660 SkFastMin32(SkAlphaMul(b, mul) + add, a)); |
661 } else { | 661 } else { |
662 span[i] = 0; | 662 span[i] = 0; |
663 } | 663 } |
664 } | 664 } |
665 } | 665 } |
666 } | 666 } |
667 | 667 |
668 #ifdef SK_DEVELOPER | 668 #ifndef SK_IGNORE_TO_STRING |
669 virtual void toString(SkString* str) const SK_OVERRIDE { | 669 virtual void toString(SkString* str) const SK_OVERRIDE { |
670 str->append("Sk3DShader: ("); | 670 str->append("Sk3DShader: ("); |
671 | 671 |
672 if (NULL != fProxy) { | 672 if (NULL != fProxy) { |
673 str->append("Proxy: "); | 673 str->append("Proxy: "); |
674 fProxy->toString(str); | 674 fProxy->toString(str); |
675 } | 675 } |
676 | 676 |
677 this->INHERITED::toString(str); | 677 this->INHERITED::toString(str); |
678 | 678 |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 | 964 |
965 fShader->ref(); | 965 fShader->ref(); |
966 fShaderFlags = fShader->getFlags(); | 966 fShaderFlags = fShader->getFlags(); |
967 } | 967 } |
968 | 968 |
969 SkShaderBlitter::~SkShaderBlitter() { | 969 SkShaderBlitter::~SkShaderBlitter() { |
970 SkASSERT(fShader->setContextHasBeenCalled()); | 970 SkASSERT(fShader->setContextHasBeenCalled()); |
971 fShader->endContext(); | 971 fShader->endContext(); |
972 fShader->unref(); | 972 fShader->unref(); |
973 } | 973 } |
OLD | NEW |