Don't require AA in order to use shader-based clips
Review URL: https://codereview.chromium.org/941423002
This commit is contained in:
parent
dd3143b007
commit
2596567793
@ -263,8 +263,7 @@ bool GrClipMaskManager::setupClipping(GrPipelineBuilder* pipelineBuilder,
|
||||
SkVector clipToRTOffset = { SkIntToScalar(-clipDataIn->fOrigin.fX),
|
||||
SkIntToScalar(-clipDataIn->fOrigin.fY) };
|
||||
if (elements.isEmpty() ||
|
||||
(requiresAA && this->installClipEffects(pipelineBuilder, are, elements, clipToRTOffset,
|
||||
devBounds))) {
|
||||
this->installClipEffects(pipelineBuilder, are, elements, clipToRTOffset, devBounds)) {
|
||||
SkIRect scissorSpaceIBounds(clipSpaceIBounds);
|
||||
scissorSpaceIBounds.offset(-clipDataIn->fOrigin);
|
||||
if (NULL == devBounds ||
|
||||
|
Loading…
Reference in New Issue
Block a user