aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2015-11-30 17:02:50 -0500
committerGravatar Brian Salomon <bsalomon@google.com>2015-11-30 17:02:50 -0500
commit362c900625dc2ece854678455776b711c1e44c04 (patch)
tree30f6acd74de1b4762f189c280e15e6eb2e119555
parentb775e91e8760200f145a95672c29cc703b8a4f5f (diff)
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 .
-rw-r--r--src/gpu/GrClipMaskManager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp
index 303aeccc8a..9eaf415cce 100644
--- a/src/gpu/GrClipMaskManager.cpp
+++ b/src/gpu/GrClipMaskManager.cpp
@@ -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)) {