Re-enable CPU mipmap generation for Ganesh. Aniso mips were landed a while ago. Howev...
authorbrianosman <brianosman@google.com>
Fri, 25 Mar 2016 18:26:26 +0000 (11:26 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 25 Mar 2016 18:26:26 +0000 (11:26 -0700)
commitb0ac1af7fab467aacbc27d20d14a09bcb960472f
treef042cdfc6e0e2e969d7f4b4a52250f8294422ae1
parent77a9cc1dead147fc547895d3725d9ee2150cda73
Re-enable CPU mipmap generation for Ganesh. Aniso mips were landed a while ago. However, the CPU builder fails when it sees Index8 (among other things), so change the code to fallback to GPU in that case. Additionally, if we're going to be mipping an sRGB image, don't use the CPU code (which is not yet gamma correct). Unfortunately, this means that we will often be using the GPU path, still - with recent codec changes, most images are coming in tagged as sRGB.

BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1835003002

Review URL: https://codereview.chromium.org/1835003002
src/core/SkImageCacherator.cpp
src/gpu/GrImageIDTextureAdjuster.cpp
src/gpu/SkGr.cpp