Index: src/gpu/GrDrawingManager.cpp |
diff --git a/src/gpu/GrDrawingManager.cpp b/src/gpu/GrDrawingManager.cpp |
index 75ee0db7c8979a41bc24c3af2d9ef1efa17be952..a27268c5cff4f78f7d62ee113d48866385fe5f1d 100644 |
--- a/src/gpu/GrDrawingManager.cpp |
+++ b/src/gpu/GrDrawingManager.cpp |
@@ -174,7 +174,8 @@ GrPathRenderer* GrDrawingManager::getPathRenderer(const GrPathRenderer::CanDrawP |
return pr; |
} |
-sk_sp<GrDrawContext> GrDrawingManager::drawContext(sk_sp<GrRenderTarget> rt, |
+sk_sp<GrDrawContext> GrDrawingManager::drawContext(int width, int height, |
+ sk_sp<GrRenderTarget> rt, |
const SkSurfaceProps* surfaceProps) { |
if (this->wasAbandoned()) { |
return nullptr; |
@@ -191,13 +192,17 @@ sk_sp<GrDrawContext> GrDrawingManager::drawContext(sk_sp<GrRenderTarget> rt, |
GrStencilAttachment* sb = fContext->resourceProvider()->attachStencilAttachment(rt.get()); |
if (sb) { |
return sk_sp<GrDrawContext>(new GrPathRenderingDrawContext( |
- fContext, this, std::move(rt), |
+ fContext, this, |
+ width, height, |
+ std::move(rt), |
surfaceProps, |
fContext->getAuditTrail(), fSingleOwner)); |
} |
} |
- return sk_sp<GrDrawContext>(new GrDrawContext(fContext, this, std::move(rt), surfaceProps, |
+ return sk_sp<GrDrawContext>(new GrDrawContext(fContext, this, |
+ width, height, |
+ std::move(rt), surfaceProps, |
fContext->getAuditTrail(), |
fSingleOwner)); |
} |