aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrAtlasTextContext.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-04-28 09:08:28 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-28 09:08:28 -0700
commitef292a0901205b9785a30daae2c036aa34a970ca (patch)
tree78df6b75ca04153409353aa488ce193bcf91de9b /src/gpu/GrAtlasTextContext.cpp
parentcfc18867d982119d9dc2888bf09f1093012daadd (diff)
removing equality / compute invariant loops from GrGeometryProcessors
Diffstat (limited to 'src/gpu/GrAtlasTextContext.cpp')
-rw-r--r--src/gpu/GrAtlasTextContext.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/gpu/GrAtlasTextContext.cpp b/src/gpu/GrAtlasTextContext.cpp
index dee3be7635..59b018e7b5 100644
--- a/src/gpu/GrAtlasTextContext.cpp
+++ b/src/gpu/GrAtlasTextContext.cpp
@@ -1494,14 +1494,10 @@ public:
texture));
} else {
GrTextureParams params(SkShader::kClamp_TileMode, GrTextureParams::kNone_FilterMode);
-
- // This will be ignored in the non A8 case
- bool opaqueVertexColors = GrColorIsOpaque(this->color());
gp.reset(GrBitmapTextGeoProc::Create(this->color(),
texture,
params,
fMaskFormat,
- opaqueVertexColors,
localMatrix));
}
@@ -1964,7 +1960,6 @@ private:
flags);
} else {
flags |= kColorAttr_DistanceFieldEffectFlag;
- bool opaque = GrColorIsOpaque(color);
#ifdef SK_GAMMA_APPLY_TO_A8
U8CPU lum = SkColorSpaceLuminance::computeLuminance(fGamma, filteredColor);
float correction = (*fDistanceAdjustTable)[lum >> kDistanceAdjustLumShift];
@@ -1973,15 +1968,13 @@ private:
texture,
params,
correction,
- flags,
- opaque);
+ flags);
#else
return GrDistanceFieldA8TextGeoProc::Create(color,
viewMatrix,
texture,
params,
- flags,
- opaque);
+ flags);
#endif
}