Index: src/gpu/GrStencilAndCoverTextContext.cpp |
diff --git a/src/gpu/GrStencilAndCoverTextContext.cpp b/src/gpu/GrStencilAndCoverTextContext.cpp |
index e62ed3863562693d4d62ed3c4a0a2b938e828a3c..b07a546b9a7c4f9dac9707e570b9373176c375b4 100644 |
--- a/src/gpu/GrStencilAndCoverTextContext.cpp |
+++ b/src/gpu/GrStencilAndCoverTextContext.cpp |
@@ -255,7 +255,15 @@ void GrStencilAndCoverTextContext::init(GrRenderTarget* rt, |
RenderMode renderMode, |
const SkMatrix& viewMatrix, |
const SkIRect& regionClipBounds) { |
- GrTextContext::init(rt, clip, paint, skPaint, regionClipBounds); |
+ fClip = clip; |
+ |
+ fRenderTarget.reset(SkRef(rt)); |
+ |
+ fRegionClipBounds = regionClipBounds; |
+ fClip.getConservativeBounds(fRenderTarget->width(), fRenderTarget->height(), &fClipRect); |
+ |
+ fPaint = paint; |
+ fSkPaint = skPaint; |
fContextInitialMatrix = viewMatrix; |
fViewMatrix = viewMatrix; |