Defer mip-mapping until lazy proxy instantiation

- Remove some checks for truly impossible failures (levelCount < 0)
- Use helper method to predict number of mips, then verify correct
  results in the lambda.
- Split up SkMipMap::Build with a CanBuild helper, so GPU code can
  predict success/failure accurately.
- This is going to simplify the case where we need to change the
  config for unsupported formats.

Bug: skia:8375
Change-Id: Ied523ab55c38b8c8e7e2ae983744ed400497939b
Reviewed-on: https://skia-review.googlesource.com/154080
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
3 files changed