use SkScalar instead of float

BUG=skia:
TBR=

Review URL: https://codereview.chromium.org/796803005