Consolidate quad optimizations into single internal function.
Routes all non-textured quad draws through single internal function
Change-Id: Ief66864a0ad2d598982c5bf500c8a84ecbf84387
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/215455
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
diff --git a/gm/samplelocations.cpp b/gm/samplelocations.cpp
index baec473..273d627 100644
--- a/gm/samplelocations.cpp
+++ b/gm/samplelocations.cpp
@@ -290,9 +290,8 @@
GrPaint coverPaint;
coverPaint.setColor4f({1,0,0,1});
coverPaint.setXPFactory(GrPorterDuffXPFactory::Get(SkBlendMode::kSrcOver));
- rtc->priv().drawFilledRect(
- GrNoClip(), std::move(coverPaint), GrAA::kNo, SkMatrix::I(),
- SkRect::MakeWH(200, 200), &kStencilCover);
+ rtc->priv().stencilRect(GrNoClip(), &kStencilCover, std::move(coverPaint), GrAA::kNo,
+ SkMatrix::I(), SkRect::MakeWH(200, 200));
// Copy offscreen texture to canvas.
rtc->drawTexture(