Index: src/gpu/text/GrAtlasTextBlob.cpp |
diff --git a/src/gpu/text/GrAtlasTextBlob.cpp b/src/gpu/text/GrAtlasTextBlob.cpp |
index 65b84ddbc8fe57b99c51d4cdd923724db117014a..7d807da06f7555c7c07448c6a966756cf8e52830 100644 |
--- a/src/gpu/text/GrAtlasTextBlob.cpp |
+++ b/src/gpu/text/GrAtlasTextBlob.cpp |
@@ -312,13 +312,10 @@ void GrAtlasTextBlob::flushRun(GrDrawContext* dc, GrPipelineBuilder* pipelineBui |
continue; |
} |
- bool useGammaCorrectTable = GrPixelConfigIsSRGB(dc->accessRenderTarget()->config()) && |
- !pipelineBuilder->getDisableOutputConversionToSRGB(); |
- |
SkAutoTUnref<GrDrawBatch> batch(this->createBatch(info, glyphCount, run, |
subRun, viewMatrix, x, y, color, |
skPaint, props, |
- distanceAdjustTable, useGammaCorrectTable, |
+ distanceAdjustTable, dc->isGammaCorrect(), |
cache)); |
dc->drawBatch(pipelineBuilder, batch); |
} |