Index: src/gpu/text/GrAtlasTextContext.cpp |
diff --git a/src/gpu/text/GrAtlasTextContext.cpp b/src/gpu/text/GrAtlasTextContext.cpp |
index ec9e40cbae22fc3303ba02f9b458d3a86497b44e..918d6d29f7048aedaa06519707387d987266db4c 100644 |
--- a/src/gpu/text/GrAtlasTextContext.cpp |
+++ b/src/gpu/text/GrAtlasTextContext.cpp |
@@ -112,7 +112,7 @@ void GrAtlasTextContext::drawTextBlob(GrContext* context, GrDrawContext* dc, |
// Though for the time being runs in the textblob can override the paint, they only touch font |
// info. |
GrPaint grPaint; |
- if (!SkPaintToGrPaint(context, skPaint, viewMatrix, &grPaint)) { |
+ if (!SkPaintToGrPaint(context, skPaint, viewMatrix, props.allowSRGBInputs(), &grPaint)) { |
return; |
} |
@@ -382,7 +382,8 @@ DRAW_BATCH_TEST_DEFINE(TextBlobBatch) { |
skPaint.setSubpixelText(random->nextBool()); |
GrPaint grPaint; |
- if (!SkPaintToGrPaint(context, skPaint, viewMatrix, &grPaint)) { |
+ if (!SkPaintToGrPaint(context, skPaint, viewMatrix, gSurfaceProps.allowSRGBInputs(), |
+ &grPaint)) { |
SkFAIL("couldn't convert paint\n"); |
} |