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 #include "SkBlurMaskFilter.h" | 9 #include "SkBlurMaskFilter.h" |
10 #include "SkBlurMask.h" | 10 #include "SkBlurMask.h" |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 void GrGLRectBlurEffect::GenKey(GrSLPrecision precision, GrProcessorKeyBuilder*
b) { | 714 void GrGLRectBlurEffect::GenKey(GrSLPrecision precision, GrProcessorKeyBuilder*
b) { |
715 b->add32(precision); | 715 b->add32(precision); |
716 } | 716 } |
717 | 717 |
718 | 718 |
719 void GrGLRectBlurEffect::emitCode(EmitArgs& args) { | 719 void GrGLRectBlurEffect::emitCode(EmitArgs& args) { |
720 | 720 |
721 const char *rectName; | 721 const char *rectName; |
722 const char *profileSizeName; | 722 const char *profileSizeName; |
723 | 723 |
724 const char* precisionString = GrGLShaderVar::PrecisionString(fPrecision, kGL
ES_GrGLStandard); | 724 const char* precisionString = GrGLShaderVar::PrecisionString( |
| 725 fPrecision, args.fBuilder->ctxInfo().standard()); |
725 fProxyRectUniform = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_
Visibility, | 726 fProxyRectUniform = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_
Visibility, |
726 kVec4f_GrSLType, | 727 kVec4f_GrSLType, |
727 fPrecision, | 728 fPrecision, |
728 "proxyRect", | 729 "proxyRect", |
729 &rectName); | 730 &rectName); |
730 fProfileSizeUniform = args.fBuilder->addUniform(GrGLProgramBuilder::kFragmen
t_Visibility, | 731 fProfileSizeUniform = args.fBuilder->addUniform(GrGLProgramBuilder::kFragmen
t_Visibility, |
731 kFloat_GrSLType, | 732 kFloat_GrSLType, |
732 kDefault_GrSLPrecision, | 733 kDefault_GrSLPrecision, |
733 "profileSize", | 734 "profileSize", |
734 &profileSizeName); | 735 &profileSizeName); |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1296 } else { | 1297 } else { |
1297 str->append("None"); | 1298 str->append("None"); |
1298 } | 1299 } |
1299 str->append("))"); | 1300 str->append("))"); |
1300 } | 1301 } |
1301 #endif | 1302 #endif |
1302 | 1303 |
1303 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) | 1304 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) |
1304 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) | 1305 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) |
1305 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 1306 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
OLD | NEW |