Lines Matching full:element
11 typedef SkClipStack::Element Element;
40 // The clip established by the element list might be cached based on the last
90 SkNEW_INSERT_AT_LLIST_HEAD(result, Element, (isectRect, SkRegion::kReplace_Op, doAA));
138 // element.
165 const Element* element = iter.prev();
166 if (NULL == element) {
170 if (SkClipStack::kEmptyGenID == element->getGenID()) {
174 if (SkClipStack::kWideOpenGenID == element->getGenID()) {
182 switch (element->getOp()) {
186 if (element->isInverseFilled()) {
187 if (element->contains(queryBounds)) {
189 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
194 if (element->contains(queryBounds)) {
197 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
209 if (element->isInverseFilled()) {
210 if (element->contains(queryBounds)) {
213 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
217 if (element->contains(queryBounds)) {
219 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
229 // If the union-ed shape contains the entire bounds then after this element
232 if (element->isInverseFilled()) {
233 if (element->contains(queryBounds)) {
235 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
240 if (element->contains(queryBounds)) {
243 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
256 if (element->isInverseFilled()) {
257 if (element->contains(queryBounds)) {
259 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
263 if (element->contains(queryBounds)) {
265 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
276 // the bounds then we know after this element is applied that the bounds will be
278 if (element->isInverseFilled()) {
279 if (element->contains(queryBounds)) {
282 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
286 if (element->contains(queryBounds)) {
288 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
302 if (element->isInverseFilled()) {
303 if (element->contains(queryBounds)) {
306 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
311 if (element->contains(queryBounds)) {
314 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
330 // This will be the last element. Record the stricter genID.
331 *resultGenID = element->getGenID();
336 SkASSERT(SkRegion::kXOR_Op == element->getOp() ||
337 SkRegion::kReverseDifference_Op == element->getOp());
339 Element,
342 Element* newElement = result->addToHead(*element);
367 Element* element = result->headIter().get();
368 while (NULL != element) {
370 switch (element->getOp()) {
380 // We can clear to zero and then simply draw the clip element.
382 element->setOp(SkRegion::kReplace_Op);
391 element->setOp(SkRegion::kReplace_Op);
397 element->setOp(SkRegion::kReplace_Op);
407 skippable = element->isInverseFilled() ?
408 !SkRect::Intersects(element->getBounds(), queryBounds) :
409 element->contains(queryBounds);
413 element->setOp(SkRegion::kReplace_Op);
428 if (element->isAA()) {
432 element = result->headIter().get();