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

Unified Diff: include/gpu/GrDrawContext.h

Issue 2132073002: Pre-crop filled rects to avoid scissor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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
Index: include/gpu/GrDrawContext.h
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h
index 96f42693b48ef06ce08400cc5d5864f8dfbfbf4a..8760dbe6683a864f71f92ff9bf471b2bc7d219a7 100644
--- a/include/gpu/GrDrawContext.h
+++ b/include/gpu/GrDrawContext.h
@@ -322,10 +322,13 @@ private:
const SkRRect& origOuter,
const SkRRect& origInner);
- GrDrawBatch* getFillRectBatch(const GrPaint& paint,
- const SkMatrix& viewMatrix,
- const SkRect& rect,
- bool* useHWAA);
+ // Returns false if the draw should be skipped entirely.
+ bool getFillRectBatch(const GrClip& clip,
+ const GrPaint& paint,
+ const SkMatrix& viewMatrix,
+ const SkRect& rect,
+ SkAutoTUnref<GrDrawBatch>* batch,
csmartdalton 2016/07/08 21:20:45 I'm not sure I like this approach. Would it be bet
robertphillips 2016/07/08 22:39:48 If you update to ToT this call should be replaced
csmartdalton 2016/07/11 03:17:56 Done. Much better!
+ bool* useHWAA);
void internalDrawPath(const GrClip& clip,
const GrPaint& paint,

Powered by Google App Engine
This is Rietveld 408576698