| Index: src/gpu/GrDrawContext.cpp
|
| diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp
|
| index 202be23590eb2a15540469e31a2fbd2a43e9efbc..db144989621e7290c24ca00c07f3d482dae31074 100644
|
| --- a/src/gpu/GrDrawContext.cpp
|
| +++ b/src/gpu/GrDrawContext.cpp
|
| @@ -35,6 +35,8 @@
|
|
|
| #include "../private/GrAuditTrail.h"
|
|
|
| +#include "SkLatticeIter.h"
|
| +
|
| #define ASSERT_OWNED_RESOURCE(R) SkASSERT(!(R) || (R)->getContext() == fDrawingManager->getContext())
|
| #define ASSERT_SINGLE_OWNER \
|
| SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(fSingleOwner);)
|
| @@ -999,23 +1001,23 @@ void GrDrawContext::drawOval(const GrClip& clip,
|
| this->internalDrawPath(clip, paint, viewMatrix, path, style);
|
| }
|
|
|
| -void GrDrawContext::drawImageNine(const GrClip& clip,
|
| - const GrPaint& paint,
|
| - const SkMatrix& viewMatrix,
|
| - int imageWidth,
|
| - int imageHeight,
|
| - const SkIRect& center,
|
| - const SkRect& dst) {
|
| +void GrDrawContext::drawImageLattice(const GrClip& clip,
|
| + const GrPaint& paint,
|
| + const SkMatrix& viewMatrix,
|
| + int imageWidth,
|
| + int imageHeight,
|
| + std::unique_ptr<SkLatticeIter> iter,
|
| + const SkRect& dst) {
|
| ASSERT_SINGLE_OWNER
|
| RETURN_IF_ABANDONED
|
| SkDEBUGCODE(this->validate();)
|
| - GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawImageNine");
|
| + GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawImageLattice");
|
|
|
| AutoCheckFlush acf(fDrawingManager);
|
|
|
| SkAutoTUnref<GrDrawBatch> batch(GrNinePatch::CreateNonAA(paint.getColor(), viewMatrix,
|
| imageWidth, imageHeight,
|
| - center, dst));
|
| + std::move(iter), dst));
|
|
|
| GrPipelineBuilder pipelineBuilder(paint, this->mustUseHWAA(paint));
|
| this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch);
|
|
|