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

Unified Diff: include/gpu/GrClip.h

Issue 2135673002: Don't scissor draws overlapping the render target's edges (Closed) Base URL: https://chromium.googlesource.com/skia.git@hidebounds
Patch Set: Created 4 years, 5 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 | src/gpu/GrClipMaskManager.cpp » ('j') | src/gpu/GrClipMaskManager.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrClip.h
diff --git a/include/gpu/GrClip.h b/include/gpu/GrClip.h
index ce0f155e2fd49617c3f7259a8ded577b3b1c9025..26aab7005b1fdc8c766010edcde4e16eeedc32ff 100644
--- a/include/gpu/GrClip.h
+++ b/include/gpu/GrClip.h
@@ -46,6 +46,12 @@ public:
fHasStencilClip = false;
}
+ void makeScissored(SkIRect& scissor) {
+ fClipCoverageFP.reset();
+ fScissorState.set(scissor);
+ fHasStencilClip = false;
+ }
+
void makeScissoredFPBased(sk_sp<GrFragmentProcessor> fp, SkIRect& scissor) {
fClipCoverageFP = fp;
fScissorState.set(scissor);
« no previous file with comments | « no previous file | src/gpu/GrClipMaskManager.cpp » ('j') | src/gpu/GrClipMaskManager.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698