Lines Matching refs:reducedClip
150 const GrReducedClip& reducedClip) { in UseSWOnlyPath() argument
158 translate.setTranslate(SkIntToScalar(-reducedClip.left()), SkIntToScalar(-reducedClip.top())); in UseSWOnlyPath()
160 for (ElementList::Iter iter(reducedClip.elements()); iter.get(); iter.next()) { in UseSWOnlyPath()
262 const GrReducedClip reducedClip(*fStack, devBounds, in apply() local
265 if (reducedClip.hasIBounds() && !GrClip::IsInsideClip(reducedClip.ibounds(), devBounds)) { in apply()
266 out->addScissor(reducedClip.ibounds(), bounds); in apply()
269 if (!reducedClip.windowRectangles().empty()) { in apply()
270 out->addWindowRectangles(reducedClip.windowRectangles(), in apply()
274 if (reducedClip.elements().isEmpty()) { in apply()
275 return InitialState::kAllIn == reducedClip.initialState(); in apply()
279 SkASSERT(reducedClip.hasIBounds()); in apply()
282 const SkIRect& clipIBounds = reducedClip.ibounds(); in apply()
294 if (reducedClip.elements().count() <= kMaxAnalyticElements) { in apply()
305 if (reducedClip.requiresAA() && in apply()
306 get_analytic_clip_processor(reducedClip.elements(), disallowAnalyticAA, devBounds, in apply()
314 if (!renderTargetContext->isStencilBufferMultisampled() && reducedClip.requiresAA()) { in apply()
316 if (UseSWOnlyPath(context, hasUserStencilSettings, renderTargetContext, reducedClip)) { in apply()
319 result = this->createSoftwareClipMask(context, reducedClip); in apply()
321 result = this->createAlphaClipMask(context, reducedClip); in apply()
328 reducedClip.ibounds())); in apply()
348 if (renderTargetContext->priv().mustRenderClip(reducedClip.elementsGenID(), in apply()
349 reducedClip.ibounds())) { in apply()
350 reducedClip.drawStencilClipMask(context, renderTargetContext); in apply()
351 renderTargetContext->priv().setLastClip(reducedClip.elementsGenID(), reducedClip.ibounds()); in apply()
385 const GrReducedClip& reducedClip) const { in createAlphaClipMask()
388 create_clip_mask_key(reducedClip.elementsGenID(), reducedClip.ibounds(), &key); in createAlphaClipMask()
397 reducedClip.width(), in createAlphaClipMask()
398 reducedClip.height(), in createAlphaClipMask()
405 if (!reducedClip.drawAlphaClipMask(rtc.get())) { in createAlphaClipMask()
416 add_invalidate_on_pop_message(*fStack, reducedClip.elementsGenID(), key); in createAlphaClipMask()
423 const GrReducedClip& reducedClip) const { in createSoftwareClipMask()
425 create_clip_mask_key(reducedClip.elementsGenID(), reducedClip.ibounds(), &key); in createSoftwareClipMask()
434 SkIRect maskSpaceIBounds = SkIRect::MakeWH(reducedClip.width(), reducedClip.height()); in createSoftwareClipMask()
441 translate.setTranslate(SkIntToScalar(-reducedClip.left()), SkIntToScalar(-reducedClip.top())); in createSoftwareClipMask()
446 helper.clear(InitialState::kAllIn == reducedClip.initialState() ? 0xFF : 0x00); in createSoftwareClipMask()
448 for (ElementList::Iter iter(reducedClip.elements()); iter.get(); iter.next()) { in createSoftwareClipMask()
459 SkRect temp = SkRect::Make(reducedClip.ibounds()); in createSoftwareClipMask()
487 add_invalidate_on_pop_message(*fStack, reducedClip.elementsGenID(), key); in createSoftwareClipMask()