Index: src/gpu/GrClipMaskManager.cpp |
diff --git a/src/gpu/GrClipMaskManager.cpp b/src/gpu/GrClipMaskManager.cpp |
index 340ede0d314484247d892cf66324c90ba6715e71..c1c59734ab50b6f133891dd388583bd68dc15fce 100644 |
--- a/src/gpu/GrClipMaskManager.cpp |
+++ b/src/gpu/GrClipMaskManager.cpp |
@@ -174,7 +174,9 @@ bool GrClipMaskManager::setupClipping(const GrClipData* clipDataIn, |
if (effect) { |
are->set(fGpu->drawState()); |
fGpu->drawState()->addCoverageEffect(effect); |
- fGpu->disableScissor(); |
+ SkIRect scissorSpaceIBounds(clipSpaceIBounds); |
bsalomon
2014/02/06 22:16:01
It turns out we were already doing this in the ste
robertphillips
2014/02/07 13:42:11
That's a better answer then them analyzing our ste
|
+ scissorSpaceIBounds.offset(-clipDataIn->fOrigin); |
+ fGpu->enableScissor(scissorSpaceIBounds); |
this->setGpuStencil(); |
return true; |
} |