Make GrDrawContext::internalDrawPath cons up its own GrPipelineBuilder
Hopefully, this better defines (and reduces) the lifetime and reuse of GrPipelineBuilder objects in GrDrawContext.
TBR=bsalomon@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1730903007
Committed: https://skia.googlesource.com/skia/+/00fddebe56fabea67dcc08762805c1294eebf5bf
Review URL: https://codereview.chromium.org/1730903007
diff --git a/include/gpu/GrDrawContext.h b/include/gpu/GrDrawContext.h
index 8cd5ee6..bde2f4a 100644
--- a/include/gpu/GrDrawContext.h
+++ b/include/gpu/GrDrawContext.h
@@ -100,7 +100,7 @@
const GrPaint& paint,
const SkMatrix& viewMatrix,
const SkRect&,
- const GrStrokeInfo* strokeInfo = NULL);
+ const GrStrokeInfo* strokeInfo = nullptr);
/**
* Maps a rectangle of shader coordinates to a rectangle and fills that rectangle.
@@ -302,12 +302,11 @@
const SkRRect& origOuter,
const SkRRect& origInner);
- void internalDrawPath(GrPipelineBuilder*,
+ void internalDrawPath(const GrClip& clip,
+ const GrPaint& paint,
const SkMatrix& viewMatrix,
- GrColor,
- bool useAA,
- const SkPath&,
- const GrStrokeInfo&);
+ const SkPath& path,
+ const GrStrokeInfo& strokeInfo);
// This entry point allows the GrTextContext-derived classes to add their batches to
// the drawTarget.