Fix sRGB textures that must be copied (for NPOT tiling, etc...)

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

Review-Url: https://codereview.chromium.org/1969923002
This commit is contained in:
brianosman 2016-05-12 07:53:45 -07:00 committed by Commit bot
parent 4cba202b71
commit 97fc9308e3

View File

@ -72,6 +72,7 @@ static GrTexture* copy_on_gpu(GrTexture* inputTexture, const SkIRect* subset,
// TODO: If no scaling is being performed then use copySurface.
GrPaint paint;
paint.setGammaCorrect(true);
// TODO: Initializing these values for no reason cause the compiler is complaining
SkScalar sx = 0.f;