Home | History | Annotate | Download | only in gpu

Lines Matching refs:element

11 typedef SkClipStack::Element Element;
40 // The clip established by the element list might be cached based on the last
93 SkNEW_INSERT_AT_LLIST_HEAD(result, Element, (isectRect, SkRegion::kReplace_Op, doAA));
140 // element.
167 const Element* element = iter.prev();
168 if (NULL == element) {
172 if (SkClipStack::kEmptyGenID == element->getGenID()) {
176 if (SkClipStack::kWideOpenGenID == element->getGenID()) {
184 switch (element->getOp()) {
188 if (element->isInverseFilled()) {
189 if (element->contains(queryBounds)) {
191 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
196 if (element->contains(queryBounds)) {
199 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
211 if (element->isInverseFilled()) {
212 if (element->contains(queryBounds)) {
215 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
219 if (element->contains(queryBounds)) {
221 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
231 // If the union-ed shape contains the entire bounds then after this element
234 if (element->isInverseFilled()) {
235 if (element->contains(queryBounds)) {
237 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
242 if (element->contains(queryBounds)) {
245 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
258 if (element->isInverseFilled()) {
259 if (element->contains(queryBounds)) {
261 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
265 if (element->contains(queryBounds)) {
267 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
278 // the bounds then we know after this element is applied that the bounds will be
280 if (element->isInverseFilled()) {
281 if (element->contains(queryBounds)) {
284 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
288 if (element->contains(queryBounds)) {
290 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
304 if (element->isInverseFilled()) {
305 if (element->contains(queryBounds)) {
308 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
313 if (element->contains(queryBounds)) {
316 } else if (!SkRect::Intersects(element->getBounds(), queryBounds)) {
332 // This will be the last element. Record the stricter genID.
333 *resultGenID = element->getGenID();
338 SkASSERT(SkRegion::kXOR_Op == element->getOp() ||
339 SkRegion::kReverseDifference_Op == element->getOp());
341 Element,
344 Element* newElement = result->addToHead(*element);
369 Element* element = result->headIter().get();
370 while (NULL != element) {
372 switch (element->getOp()) {
382 // We can clear to zero and then simply draw the clip element.
384 element->setOp(SkRegion::kReplace_Op);
393 element->setOp(SkRegion::kReplace_Op);
399 element->setOp(SkRegion::kReplace_Op);
409 skippable = element->isInverseFilled() ?
410 !SkRect::Intersects(element->getBounds(), queryBounds) :
411 element->contains(queryBounds);
415 element->setOp(SkRegion::kReplace_Op);
430 if (element->isAA()) {
434 element = result->headIter().get();