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

Unified Diff: src/effects/SkBlurMaskFilter.cpp

Issue 1734163002: Replace fWillReadFragmentPosition with a bitfield (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: src/effects/SkBlurMaskFilter.cpp
diff --git a/src/effects/SkBlurMaskFilter.cpp b/src/effects/SkBlurMaskFilter.cpp
index 6679e8aa414bf70b5c26f1554d9f652f9aa0ee9e..5c502996acdd14a24e8cb839c3a5c81a4f59042f 100644
--- a/src/effects/SkBlurMaskFilter.cpp
+++ b/src/effects/SkBlurMaskFilter.cpp
@@ -811,7 +811,7 @@ GrRectBlurEffect::GrRectBlurEffect(const SkRect& rect, float sigma, GrTexture *b
, fPrecision(precision) {
this->initClassID<GrRectBlurEffect>();
this->addTextureAccess(&fBlurProfileAccess);
- this->setWillReadFragmentPosition();
+ this->enableBuiltInState(kFragmentPosition_BuiltInState);
}
void GrRectBlurEffect::onGetGLSLProcessorKey(const GrGLSLCaps& caps,
@@ -1019,7 +1019,7 @@ GrRRectBlurEffect::GrRRectBlurEffect(float sigma, const SkRRect& rrect, GrTextur
fNinePatchAccess(ninePatchTexture) {
this->initClassID<GrRRectBlurEffect>();
this->addTextureAccess(&fNinePatchAccess);
- this->setWillReadFragmentPosition();
+ this->enableBuiltInState(kFragmentPosition_BuiltInState);
}
bool GrRRectBlurEffect::onIsEqual(const GrFragmentProcessor& other) const {

Powered by Google App Engine
This is Rietveld 408576698