use log2(scale) to compute mip level

BUG=skia:

Review URL: https://codereview.chromium.org/849333002
4 files changed