Index: src/gpu/GrTextContext.cpp |
diff --git a/src/gpu/GrTextContext.cpp b/src/gpu/GrTextContext.cpp |
index 32187109f359ac92b3291fa3009bb1bfa3e64723..6153f3b05de56cf741d63afabfd7be8b170ffd8b 100644 |
--- a/src/gpu/GrTextContext.cpp |
+++ b/src/gpu/GrTextContext.cpp |
@@ -116,7 +116,9 @@ void GrTextContext::drawTextBlob(GrRenderTarget* rt, const GrClip& clip, const S |
runPaint.setFlags(fGpuDevice->filterTextFlags(runPaint)); |
GrPaint grPaint; |
- SkPaint2GrPaintShader(fContext, fRenderTarget, runPaint, viewMatrix, true, &grPaint); |
+ if (!SkPaint2GrPaint(fContext, fRenderTarget, runPaint, viewMatrix, true, &grPaint)) { |
+ return; |
+ } |
switch (it.positioning()) { |
case SkTextBlob::kDefault_Positioning: |