Index: src/gpu/GrDrawingManager.cpp |
diff --git a/src/gpu/GrDrawingManager.cpp b/src/gpu/GrDrawingManager.cpp |
index 75ee0db7c8979a41bc24c3af2d9ef1efa17be952..5dc07dd9604456f9ba92c1c02e460b24338e1823 100644 |
--- a/src/gpu/GrDrawingManager.cpp |
+++ b/src/gpu/GrDrawingManager.cpp |
@@ -175,6 +175,7 @@ GrPathRenderer* GrDrawingManager::getPathRenderer(const GrPathRenderer::CanDrawP |
} |
sk_sp<GrDrawContext> GrDrawingManager::drawContext(sk_sp<GrRenderTarget> rt, |
+ sk_sp<SkColorSpace> colorSpace, |
const SkSurfaceProps* surfaceProps) { |
if (this->wasAbandoned()) { |
return nullptr; |
@@ -191,13 +192,14 @@ 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), |
- surfaceProps, |
+ fContext, this, std::move(rt), |
+ std::move(colorSpace), surfaceProps, |
fContext->getAuditTrail(), fSingleOwner)); |
} |
} |
- return sk_sp<GrDrawContext>(new GrDrawContext(fContext, this, std::move(rt), surfaceProps, |
+ return sk_sp<GrDrawContext>(new GrDrawContext(fContext, this, std::move(rt), |
+ std::move(colorSpace), surfaceProps, |
fContext->getAuditTrail(), |
fSingleOwner)); |
} |