Index: src/gpu/GrContext.cpp |
diff --git a/src/gpu/GrContext.cpp b/src/gpu/GrContext.cpp |
index 1d6bb32142ce09b40c6ae401ced9ebfbdbffe561..c223a602132743d9a7baffcdb98c94e6cd39cee2 100644 |
--- a/src/gpu/GrContext.cpp |
+++ b/src/gpu/GrContext.cpp |
@@ -366,6 +366,8 @@ bool GrContext::writeSurfacePixels(GrSurface* surface, |
if (!drawContext) { |
return false; |
} |
+ // SRGBTODO: AllowSRGBInputs? (We could force it on here, so we don't need the |
+ // per-texture override in config conversion effect?) |
GrPaint paint; |
paint.addColorFragmentProcessor(fp); |
paint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode); |
@@ -476,6 +478,8 @@ bool GrContext::readSurfacePixels(GrSurface* src, |
GrConfigConversionEffect::kNone_PMConversion, textureMatrix)); |
} |
if (fp) { |
+ // SRGBTODO: AllowSRGBInputs? (We could force it on here, so we don't need the |
+ // per-texture override in config conversion effect?) |
GrPaint paint; |
paint.addColorFragmentProcessor(fp); |
paint.setPorterDuffXPFactory(SkXfermode::kSrc_Mode); |