| Index: src/gpu/text/GrAtlasTextContext.cpp
|
| diff --git a/src/gpu/text/GrAtlasTextContext.cpp b/src/gpu/text/GrAtlasTextContext.cpp
|
| index ff62b1f9c51feeac63e946a67988e3f8c2403d13..9b66d2fa5a984415ef741b4b1a33e43e55eefb52 100644
|
| --- a/src/gpu/text/GrAtlasTextContext.cpp
|
| +++ b/src/gpu/text/GrAtlasTextContext.cpp
|
| @@ -124,7 +124,8 @@ 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, props.isGammaCorrect(), &grPaint)) {
|
| + if (!SkPaintToGrPaint(context, skPaint, viewMatrix, props.isGammaCorrect(), dc->getColorSpace(),
|
| + &grPaint)) {
|
| return;
|
| }
|
|
|
| @@ -398,7 +399,7 @@ DRAW_BATCH_TEST_DEFINE(TextBlobBatch) {
|
| skPaint.setSubpixelText(random->nextBool());
|
|
|
| GrPaint grPaint;
|
| - if (!SkPaintToGrPaint(context, skPaint, viewMatrix, gSurfaceProps.isGammaCorrect(),
|
| + if (!SkPaintToGrPaint(context, skPaint, viewMatrix, gSurfaceProps.isGammaCorrect(), nullptr,
|
| &grPaint)) {
|
| SkFAIL("couldn't convert paint\n");
|
| }
|
|
|