From 259656779334689ab1624ec4e2e234b35fe4024b Mon Sep 17 00:00:00 2001 From: bsalomon Date: Mon, 23 Feb 2015 09:28:30 -0800 Subject: [PATCH] Don't require AA in order to use shader-based clips Review URL: https://codereview.chromium.org/941423002 --- src/gpu/GrClipMaskManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp index 10414b5f2b..22785cbace 100644 --- a/src/gpu/GrClipMaskManager.cpp +++ b/src/gpu/GrClipMaskManager.cpp @@ -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 ||