Index: src/gpu/GrReducedClip.cpp |
diff --git a/src/gpu/GrReducedClip.cpp b/src/gpu/GrReducedClip.cpp |
index 137c83e411ec1af46779587099b9a5f6d4ecf820..9a6a6149add026cde688033908dfba96af5fc200 100644 |
--- a/src/gpu/GrReducedClip.cpp |
+++ b/src/gpu/GrReducedClip.cpp |
@@ -206,9 +206,7 @@ static void reduced_stack_walker(const SkClipStack& stack, |
if (isFlip) { |
SkASSERT(SkRegion::kXOR_Op == element->getOp() || |
SkRegion::kReverseDifference_Op == element->getOp()); |
- SkNEW_INSERT_AT_LLIST_HEAD(result, |
- Element, |
- (queryBounds, SkRegion::kReverseDifference_Op, false)); |
+ result->addToHead(queryBounds, SkRegion::kReverseDifference_Op, false); |
} else { |
Element* newElement = result->addToHead(*element); |
if (newElement->isAA()) { |
@@ -386,7 +384,7 @@ void GrReducedClip::ReduceClipStack(const SkClipStack& stack, |
// iior should only be true if aa/non-aa status matches among all elements. |
SkClipStack::Iter iter(stack, SkClipStack::Iter::kTop_IterStart); |
bool doAA = iter.prev()->isAA(); |
- SkNEW_INSERT_AT_LLIST_HEAD(result, Element, (isectRect, SkRegion::kReplace_Op, doAA)); |
+ result->addToHead(isectRect, SkRegion::kReplace_Op, doAA); |
if (requiresAA) { |
*requiresAA = doAA; |
} |