Index: src/gpu/GrPipelineBuilder.cpp |
diff --git a/src/gpu/GrPipelineBuilder.cpp b/src/gpu/GrPipelineBuilder.cpp |
index 0b2d99afc2f4c179206faa0f6f267601cf7abfb2..97e7229af27ef57823aa08d1c26ee4fe5391c2fd 100644 |
--- a/src/gpu/GrPipelineBuilder.cpp |
+++ b/src/gpu/GrPipelineBuilder.cpp |
@@ -99,7 +99,8 @@ bool GrPipelineBuilder::willXPNeedDstTexture(const GrCaps& caps, |
this->hasMixedSamples()); |
} |
-void GrPipelineBuilder::AutoRestoreFragmentProcessors::set(GrPipelineBuilder* pipelineBuilder) { |
+void GrPipelineBuilder::AutoRestoreFragmentProcessors::set( |
+ const GrPipelineBuilder* pipelineBuilder) { |
if (fPipelineBuilder) { |
int m = fPipelineBuilder->numColorFragmentStages() - fColorEffectCnt; |
SkASSERT(m >= 0); |
@@ -114,7 +115,7 @@ void GrPipelineBuilder::AutoRestoreFragmentProcessors::set(GrPipelineBuilder* pi |
} |
SkDEBUGCODE(--fPipelineBuilder->fBlockEffectRemovalCnt;) |
} |
- fPipelineBuilder = pipelineBuilder; |
+ fPipelineBuilder = const_cast<GrPipelineBuilder*>(pipelineBuilder); |
if (NULL != pipelineBuilder) { |
fColorEffectCnt = pipelineBuilder->numColorFragmentStages(); |
fCoverageEffectCnt = pipelineBuilder->numCoverageFragmentStages(); |