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

Unified Diff: src/gpu/GrClip.cpp

Issue 1993263002: Make GrAppliedClip friendless (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Make GrAppliedClip friendless Created 4 years, 7 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 | « include/gpu/GrClip.h ('k') | src/gpu/GrClipMaskManager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrClip.cpp
diff --git a/src/gpu/GrClip.cpp b/src/gpu/GrClip.cpp
index 15065aa4849fbd76a724634d3bb70f028684a5a9..eeb105e2cbf9f5ad731829d3bcd57131780ddaa3 100644
--- a/src/gpu/GrClip.cpp
+++ b/src/gpu/GrClip.cpp
@@ -52,9 +52,11 @@ bool GrFixedClip::apply(GrClipMaskManager*, const GrPipelineBuilder& pipelineBui
if (devBounds && !devBounds->intersects(SkRect::Make(tightScissor))) {
return false;
}
- out->fScissorState.set(tightScissor);
+ out->makeScissoredStencil(fHasStencilClip, tightScissor);
+ return true;
}
- out->fHasStencilClip = fHasStencilClip;
+
+ out->makeStencil(fHasStencilClip);
return true;
}
« no previous file with comments | « include/gpu/GrClip.h ('k') | src/gpu/GrClipMaskManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698