Index: src/gpu/GrClipMaskManager.cpp |
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp |
index c7b88caa244cef3abf9ae59abab5097f919af3a3..81da42c007c714fcf68aabc008c0104e4792c4ba 100644 |
--- a/src/gpu/GrClipMaskManager.cpp |
+++ b/src/gpu/GrClipMaskManager.cpp |
@@ -927,7 +927,7 @@ GrTexture* GrClipMaskManager::CreateSoftwareClipMask(GrContext* context, |
SkMatrix translate; |
translate.setTranslate(clipToMaskOffset); |
- helper.init(maskSpaceIBounds, &translate, false); |
+ helper.init(maskSpaceIBounds, &translate); |
helper.clear(GrReducedClip::kAllIn_InitialState == initialState ? 0xFF : 0x00); |
for (GrReducedClip::ElementList::Iter iter(elements.headIter()) ; iter.get(); iter.next()) { |
@@ -942,24 +942,24 @@ GrTexture* GrClipMaskManager::CreateSoftwareClipMask(GrContext* context, |
if (SkRegion::kReverseDifference_Op == op) { |
SkRect temp = SkRect::Make(clipSpaceIBounds); |
// invert the entire scene |
- helper.draw(temp, SkRegion::kXOR_Op, false, 0xFF); |
+ helper.drawRect(temp, SkRegion::kXOR_Op, false, 0xFF); |
} |
SkPath clipPath; |
element->asPath(&clipPath); |
clipPath.toggleInverseFillType(); |
- helper.draw(clipPath, GrStyle::SimpleFill(), SkRegion::kReplace_Op, element->isAA(), |
- 0x00); |
+ helper.drawPath(clipPath, GrStyle::SimpleFill(), SkRegion::kReplace_Op, |
+ element->isAA(), 0x00); |
continue; |
} |
// The other ops (union, xor, diff) only affect pixels inside |
// the geometry so they can just be drawn normally |
if (Element::kRect_Type == element->getType()) { |
- helper.draw(element->getRect(), op, element->isAA(), 0xFF); |
+ helper.drawRect(element->getRect(), op, element->isAA(), 0xFF); |
} else { |
SkPath path; |
element->asPath(&path); |
- helper.draw(path, GrStyle::SimpleFill(), op, element->isAA(), 0xFF); |
+ helper.drawPath(path, GrStyle::SimpleFill(), op, element->isAA(), 0xFF); |
} |
} |