| 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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 textureProvider->assignUniqueKeyToTexture(key, blurProfile); | 762 textureProvider->assignUniqueKeyToTexture(key, blurProfile); |
| 763 } | 763 } |
| 764 } | 764 } |
| 765 | 765 |
| 766 return blurProfile; | 766 return blurProfile; |
| 767 } | 767 } |
| 768 | 768 |
| 769 GrRectBlurEffect::GrRectBlurEffect(const SkRect& rect, float sigma, GrTexture *b
lurProfile) | 769 GrRectBlurEffect::GrRectBlurEffect(const SkRect& rect, float sigma, GrTexture *b
lurProfile) |
| 770 : fRect(rect) | 770 : fRect(rect) |
| 771 , fSigma(sigma) | 771 , fSigma(sigma) |
| 772 , fBlurProfileAccess(blurProfile, GrTextureParams::kBilerp_FilterMode) { | 772 , fBlurProfileAccess(blurProfile) { |
| 773 this->initClassID<GrRectBlurEffect>(); | 773 this->initClassID<GrRectBlurEffect>(); |
| 774 this->addTextureAccess(&fBlurProfileAccess); | 774 this->addTextureAccess(&fBlurProfileAccess); |
| 775 this->setWillReadFragmentPosition(); | 775 this->setWillReadFragmentPosition(); |
| 776 } | 776 } |
| 777 | 777 |
| 778 void GrRectBlurEffect::onGetGLProcessorKey(const GrGLSLCaps& caps, | 778 void GrRectBlurEffect::onGetGLProcessorKey(const GrGLSLCaps& caps, |
| 779 GrProcessorKeyBuilder* b) const { | 779 GrProcessorKeyBuilder* b) const { |
| 780 GrGLRectBlurEffect::GenKey(*this, caps, b); | 780 GrGLRectBlurEffect::GenKey(*this, caps, b); |
| 781 } | 781 } |
| 782 | 782 |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 } else { | 1263 } else { |
| 1264 str->append("None"); | 1264 str->append("None"); |
| 1265 } | 1265 } |
| 1266 str->append("))"); | 1266 str->append("))"); |
| 1267 } | 1267 } |
| 1268 #endif | 1268 #endif |
| 1269 | 1269 |
| 1270 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) | 1270 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) |
| 1271 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) | 1271 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) |
| 1272 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END | 1272 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END |
| OLD | NEW |