Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Unified Diff: src/gpu/GrClipMaskManager.cpp

Issue 156843005: Set scissor to clip bounding box when using GrConvexPolyEffect (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698