diff options
author | Mike Reed <reed@google.com> | 2017-12-15 14:28:56 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-20 13:22:04 +0000 |
commit | e1367b4a064737cbcf78f2297fa89e0a032b2060 (patch) | |
tree | b5d988d51b1a5745f37ac30898a83431a12f23b2 /src/gpu | |
parent | bc9f3499c345ce59f8cd3889c580fa75db54034b (diff) |
Reland "hide unused var"
This is a reland of 746db42e2c07050d5d0a0db11bfdab441d57e8cd
Original change's description:
> hide unused var
>
> Bug: skia:
> Change-Id: Ia060e0becd8d40817c59e2918678dbdc6dfd6cdd
> Reviewed-on: https://skia-review.googlesource.com/86041
> Reviewed-by: Mike Reed <reed@google.com>
Bug: skia:
Change-Id: I610ccfec1e1eb7888bd4f16f7d83fded10ccf0af
Reviewed-on: https://skia-review.googlesource.com/87720
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/effects/GrDistanceFieldGeoProc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/effects/GrDistanceFieldGeoProc.cpp b/src/gpu/effects/GrDistanceFieldGeoProc.cpp index b8548bb4db..c63ce8f3b2 100644 --- a/src/gpu/effects/GrDistanceFieldGeoProc.cpp +++ b/src/gpu/effects/GrDistanceFieldGeoProc.cpp @@ -286,7 +286,9 @@ sk_sp<GrGeometryProcessor> GrDistanceFieldA8TextGeoProc::TestCreate(GrProcessorT } SkMatrix localMatrix = GrTest::TestMatrix(d->fRandom); GrColor color = GrRandomColor(d->fRandom); +#ifdef SK_GAMMA_APPLY_TO_A8 float lum = d->fRandom->nextF(); +#endif return GrDistanceFieldA8TextGeoProc::Make(color, proxies, samplerState, |