Index: src/gpu/GrClipMaskManager.cpp |
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp |
index 3e802d71356ec5e5957828159c9c0a0cdca198d1..efd48b9e7195763baec8e723e4db3f9aed37fb47 100644 |
--- a/src/gpu/GrClipMaskManager.cpp |
+++ b/src/gpu/GrClipMaskManager.cpp |
@@ -369,7 +369,7 @@ bool GrClipMaskManager::setupClipping(const GrPipelineBuilder& pipelineBuilder, |
} |
// If MSAA is enabled we can do everything in the stencil buffer. |
- if (0 == rt->numStencilSamples() && requiresAA) { |
+ if (0 == rt->numColorSamples() && requiresAA) { |
SkAutoTUnref<GrTexture> result; |
// The top-left of the mask corresponds to the top-left corner of the bounds. |
@@ -707,7 +707,7 @@ bool GrClipMaskManager::createStencilClipMask(GrRenderTarget* rt, |
pipelineBuilder.setDisableColorXPFactory(); |
// if the target is MSAA then we want MSAA enabled when the clip is soft |
- if (rt->isStencilBufferMultisampled()) { |
+ if (rt->isUnifiedMultisampled()) { |
pipelineBuilder.setState(GrPipelineBuilder::kHWAntialias_Flag, element->isAA()); |
} |