Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1121)

Side by Side Diff: src/effects/SkBlurMaskFilter.cpp

Issue 1378323002: Revert of Have GrRectBlurEffect use Linear filtering (rather than Nearest Neighbor) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698