Store mipmap levels in deferred texture image
authorcblume <cblume@chromium.org>
Tue, 9 Aug 2016 20:45:56 +0000 (13:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 9 Aug 2016 20:45:56 +0000 (13:45 -0700)
commitd6113140f7ae8996f679ac6698a60fb8c1386da3
treef641a12df7ca225733bd164297485f189f254db9
parent8eccc308c8adcdf26ffc7c4dd538b71f33c6f22b
Store mipmap levels in deferred texture image

This is a follow-up to https://codereview.chromium.org/2034933003/ which
was reverted due to a memory leak.

When creating the deferred texture image, detect if using medium / high
quality. If so, generate and store mipmaps in the deferred texture
image.

When creating a texture from that be sure to read it back out.

BUG=578304
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2115023002

Review-Url: https://codereview.chromium.org/2115023002
gm/deferredtextureimage.cpp [new file with mode: 0644]
gm/deferredtextureimagedata.cpp [deleted file]
include/core/SkImage.h
src/image/SkImage.cpp
src/image/SkImage_Gpu.cpp
tests/ImageTest.cpp