Disable using dev bounds in Gr clip reduction code.

Enabling this broke GPU raster in Chrome. Disabling until bug diagnosed/fixed.

TBR=joshualitt@googole.com

Review URL: https://codereview.chromium.org/1484973002 .
This commit is contained in:
Brian Salomon 2015-11-30 17:02:50 -05:00
parent b775e91e87
commit 362c900625

View File

@ -357,7 +357,8 @@ bool GrClipMaskManager::setupClipping(const GrPipelineBuilder& pipelineBuilder,
case GrClip::kClipStack_ClipType: {
clipSpaceRTIBounds.offset(clip.origin());
SkIRect clipSpaceReduceQueryBounds;
if (devBounds) {
#define DISABLE_DEV_BOUNDS_FOR_CLIP_REDUCTION 1
if (devBounds && !DISABLE_DEV_BOUNDS_FOR_CLIP_REDUCTION) {
SkIRect devIBounds = devBounds->roundOut();
devIBounds.offset(clip.origin());
if (!clipSpaceReduceQueryBounds.intersect(clipSpaceRTIBounds, devIBounds)) {