Enforce our rules about valid images when making textures
authorBrian Osman <brianosman@google.com>
Fri, 13 Jan 2017 20:50:18 +0000 (15:50 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Sat, 14 Jan 2017 22:29:03 +0000 (22:29 +0000)
commit7035f3c466826a4116e2f31deb64d1645ea9441b
treec9fa894c3bb2099f7df90ae5143b857ce366f800
parent113fd3461eb9b8b96ee2692944839077a20e4ca0
Enforce our rules about valid images when making textures

I'm working to make GrUploadPixmapToTexture more robust
and easier to follow. This is one step on that journey.

BUG=skia:

Change-Id: I3ac39057e20ff8249843bb41ceca25f629aff31c
Reviewed-on: https://skia-review.googlesource.com/7037
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Matt Sarett <msarett@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
src/gpu/SkGr.cpp