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