Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Unified Diff: src/gpu/GrTextureParamsAdjuster.cpp

Issue 1969923002: Fix sRGB textures that must be copied (for NPOT tiling, etc...) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrTextureParamsAdjuster.cpp
diff --git a/src/gpu/GrTextureParamsAdjuster.cpp b/src/gpu/GrTextureParamsAdjuster.cpp
index 8868309a80ccdfbba8eb675e5fbec8305f07874e..3c4769b96e7f1a7404bc0ff272aa598d5b567a8b 100644
--- a/src/gpu/GrTextureParamsAdjuster.cpp
+++ b/src/gpu/GrTextureParamsAdjuster.cpp
@@ -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);
egdaniel 2016/05/11 22:04:46 so you have no conditional around this, so we alwa
Brian Osman 2016/05/12 01:01:35 This sets two flags on the paint (one that basical
// TODO: Initializing these values for no reason cause the compiler is complaining
SkScalar sx = 0.f;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698