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

Unified Diff: include/gpu/GrClip.h

Issue 1754563003: Begin weaning GrClipMaskManager off of GrDrawTarget (take 2) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update Created 4 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 | include/gpu/GrDrawContext.h » ('j') | include/gpu/GrDrawContext.h » ('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 cf6e65c976289c52906e3db2183c7ce884cc6a5d..0f6f2e081fa34a45526a987f7c52885b61edee20 100644
--- a/include/gpu/GrClip.h
+++ b/include/gpu/GrClip.h
@@ -114,6 +114,13 @@ public:
}
}
+ void setScissor(const SkIRect& scissor) {
bsalomon 2016/03/01 17:38:55 Can we call this setIRect()? Seems like this shoul
robertphillips 2016/03/01 20:11:57 Done.
+ this->reset();
+ fClipType = kIRect_ClipType;
+ fOrigin.setZero();
+ fClip.fIRect = scissor;
+ }
+
const SkIRect& irect() const {
SkASSERT(kIRect_ClipType == fClipType);
return fClip.fIRect;
« no previous file with comments | « no previous file | include/gpu/GrDrawContext.h » ('j') | include/gpu/GrDrawContext.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698