aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-01-22 07:59:52 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-01-22 07:59:52 -0800
commit50282b4390dcddcf3b1d51631c0133045ae1f233 (patch)
tree52d10223b3a9c75eb8692c6707e0500721535251 /src/gpu
parent44af7ba4bc571110f02f31dd71a8fd4dc7e6bfd2 (diff)
fLuminance is unsed unless SK_GAMMA_APPLY_TO_A8 is defined
Diffstat (limited to 'src/gpu')
-rwxr-xr-xsrc/gpu/effects/GrDistanceFieldTextureEffect.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/effects/GrDistanceFieldTextureEffect.cpp b/src/gpu/effects/GrDistanceFieldTextureEffect.cpp
index f65492e9f0..28220a72ec 100755
--- a/src/gpu/effects/GrDistanceFieldTextureEffect.cpp
+++ b/src/gpu/effects/GrDistanceFieldTextureEffect.cpp
@@ -185,7 +185,9 @@ private:
UniformHandle fTextureSizeUni;
SkISize fTextureSize;
UniformHandle fLuminanceUni;
+#ifdef SK_GAMMA_APPLY_TO_A8
float fLuminance;
+#endif
typedef GrGLGeometryProcessor INHERITED;
};