| Index: src/gpu/GrDrawTarget.cpp
|
| diff --git a/src/gpu/GrDrawTarget.cpp b/src/gpu/GrDrawTarget.cpp
|
| index a45aca8a72e8338416e184e85a882d7101931906..1be4598c52f99f61d9281f7ae588b1367a1613db 100644
|
| --- a/src/gpu/GrDrawTarget.cpp
|
| +++ b/src/gpu/GrDrawTarget.cpp
|
| @@ -15,6 +15,7 @@
|
| #include "GrPath.h"
|
| #include "GrPipeline.h"
|
| #include "GrMemoryPool.h"
|
| +#include "GrRectBatch.h"
|
| #include "GrRenderTarget.h"
|
| #include "GrRenderTargetPriv.h"
|
| #include "GrSurfacePriv.h"
|
| @@ -302,6 +303,17 @@ void GrDrawTarget::drawPaths(GrPipelineBuilder* pipelineBuilder,
|
| transformType, count, stencilSettings, pipelineInfo);
|
| }
|
|
|
| +void GrDrawTarget::drawRect(GrPipelineBuilder* pipelineBuilder,
|
| + GrColor color,
|
| + const SkMatrix& viewMatrix,
|
| + const SkRect& rect,
|
| + const SkRect* localRect,
|
| + const SkMatrix* localMatrix) {
|
| + SkAutoTUnref<GrBatch> batch(GrRectBatch::Create(color, viewMatrix, rect, localRect,
|
| + localMatrix));
|
| + this->drawBatch(pipelineBuilder, batch);
|
| +}
|
| +
|
| void GrDrawTarget::clear(const SkIRect* rect,
|
| GrColor color,
|
| bool canIgnoreRect,
|
|
|