diff options
author | Michael Ludwig <michaelludwig@google.com> | 2018-11-28 12:05:46 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-11-28 19:08:34 +0000 |
commit | d3c92d9a368be2d1f592bef4e65727721fc3ecf8 (patch) | |
tree | b7aa6292d3be171a32f7a0544677c0655e5b06c6 /src/gpu/GrRenderTargetContext.cpp | |
parent | 12c0e50fda17dc5e337553c8a244e18dc83249a9 (diff) | |
download | skqp-d3c92d9a368be2d1f592bef4e65727721fc3ecf8.tar.gz |
Initial definition of fill rect op
Bug: skia:
Change-Id: Ie0c99eb5163501853d1adc885bd3841f90a71924
Reviewed-on: https://skia-review.googlesource.com/c/163486
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Michael Ludwig <michaelludwig@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetContext.cpp')
-rw-r--r-- | src/gpu/GrRenderTargetContext.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/GrRenderTargetContext.cpp b/src/gpu/GrRenderTargetContext.cpp index 33c470a4b5..bdcfd4ecc3 100644 --- a/src/gpu/GrRenderTargetContext.cpp +++ b/src/gpu/GrRenderTargetContext.cpp @@ -44,6 +44,7 @@ #include "ops/GrDrawAtlasOp.h" #include "ops/GrDrawOp.h" #include "ops/GrDrawVerticesOp.h" +#include "ops/GrFillRectOp.h" #include "ops/GrAAFillRRectOp.h" #include "ops/GrLatticeOp.h" #include "ops/GrOp.h" @@ -638,6 +639,14 @@ void GrRenderTargetContext::drawRect(const GrClip& clip, this->drawShapeUsingPathRenderer(clip, std::move(paint), aa, viewMatrix, GrShape(rect, *style)); } +void GrRenderTargetContext::drawQuadSet(const GrClip& clip, GrPaint&& paint, GrAA aa, + const SkMatrix& viewMatrix, const QuadSetEntry quads[], + int cnt) { + GrAAType aaType = this->chooseAAType(aa, GrAllowMixedSamples::kNo); + this->addDrawOp(clip, GrFillRectOp::MakeSet(fContext, std::move(paint), aaType, viewMatrix, + quads, cnt)); +} + int GrRenderTargetContextPriv::maxWindowRectangles() const { return fRenderTargetContext->fRenderTargetProxy->maxWindowRectangles( *fRenderTargetContext->caps()); |