Chromium Code Reviews| Index: src/gpu/GrPipelineBuilder.cpp |
| diff --git a/src/gpu/GrPipelineBuilder.cpp b/src/gpu/GrPipelineBuilder.cpp |
| index 6885eb0dd80b99c05915dd28d030249baabc001e..b5a5b397cc7a89e059ff1a4e7edf6d0116fd096f 100644 |
| --- a/src/gpu/GrPipelineBuilder.cpp |
| +++ b/src/gpu/GrPipelineBuilder.cpp |
| @@ -32,6 +32,7 @@ GrPipelineBuilder& GrPipelineBuilder::operator=(const GrPipelineBuilder& that) { |
| fXPFactory.reset(SkRef(that.getXPFactory())); |
| fColorStages = that.fColorStages; |
| fCoverageStages = that.fCoverageStages; |
| + fClip = that.fClip; |
| fColorProcInfoValid = that.fColorProcInfoValid; |
| fCoverageProcInfoValid = that.fCoverageProcInfoValid; |
| @@ -46,7 +47,7 @@ GrPipelineBuilder& GrPipelineBuilder::operator=(const GrPipelineBuilder& that) { |
| return *this; |
| } |
| -void GrPipelineBuilder::setFromPaint(const GrPaint& paint, GrRenderTarget* rt) { |
| +void GrPipelineBuilder::setFromPaint(const GrPaint& paint, GrRenderTarget* rt, const GrClip* clip) { |
| SkASSERT(0 == fBlockEffectRemovalCnt || 0 == this->numFragmentStages()); |
| fColorStages.reset(); |
| @@ -70,7 +71,9 @@ void GrPipelineBuilder::setFromPaint(const GrPaint& paint, GrRenderTarget* rt) { |
| fFlagBits = 0; |
| // Enable the clip bit |
|
bsalomon
2015/02/23 19:31:29
change/remove comment?
|
| - this->enableState(GrPipelineBuilder::kClip_StateBit); |
| + if (clip) { |
| + fClip = *clip; |
| + } |
| this->setState(GrPipelineBuilder::kDither_StateBit, paint.isDither()); |
| this->setState(GrPipelineBuilder::kHWAntialias_StateBit, paint.isAntiAlias()); |