https://codereview.appspot.com/6064043/diff/1/gm/gammatext.cpp File gm/gammatext.cpp (right): https://codereview.appspot.com/6064043/diff/1/gm/gammatext.cpp#newcode176 gm/gammatext.cpp:176: static_cast<float>(HEIGHT) - SkScalarToFloat(y), The cast isn't necessary but I did it to make clear what was going on.
lgtm