Skip to content

Commit

Permalink
Don't require AA in order to use shader-based clips
Browse files Browse the repository at this point in the history
  • Loading branch information
bsalomon authored and Commit bot committed Feb 23, 2015
1 parent dd3143b commit 2596567
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gpu/GrClipMaskManager.cpp
Expand Up @@ -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 ||
Expand Down

0 comments on commit 2596567

Please sign in to comment.