Index: src/gpu/GrPathRendererChain.cpp |
diff --git a/src/gpu/GrPathRendererChain.cpp b/src/gpu/GrPathRendererChain.cpp |
index bc74e2f4f756c26b177eede5883f459efda16fae..7c68a024697d04e9f69070f6497243b3d26e9e39 100644 |
--- a/src/gpu/GrPathRendererChain.cpp |
+++ b/src/gpu/GrPathRendererChain.cpp |
@@ -78,9 +78,9 @@ GrPathRenderer* GrPathRendererChain::getPathRenderer(const GrDrawTarget* target, |
void GrPathRendererChain::init() { |
SkASSERT(!fInit); |
- GrGpu* gpu = fOwner->getGpu(); |
- bool twoSided = gpu->caps()->twoSidedStencilSupport(); |
- bool wrapOp = gpu->caps()->stencilWrapOpsSupport(); |
+ const GrCaps* caps = fOwner->caps(); |
+ bool twoSided = caps->twoSidedStencilSupport(); |
+ bool wrapOp = caps->stencilWrapOpsSupport(); |
GrPathRenderer::AddPathRenderers(fOwner, this); |
this->addPathRenderer(SkNEW_ARGS(GrDefaultPathRenderer, |
(twoSided, wrapOp)))->unref(); |