| Index: tools/gpu/GrTest.cpp
|
| diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp
|
| index 6f9d2c4ee627a5e296542b276f455077a1e3b525..874567dc62ee6c58486197e7bd5af961d90ab179 100644
|
| --- a/tools/gpu/GrTest.cpp
|
| +++ b/tools/gpu/GrTest.cpp
|
| @@ -253,13 +253,15 @@ void GrResourceCache::changeTimestamp(uint32_t newTimestamp) { fTimestamp = newT
|
| #define RETURN_IF_ABANDONED if (fDrawContext->fDrawingManager->abandoned()) { return; }
|
|
|
| void GrDrawContextPriv::testingOnly_drawBatch(const GrPipelineBuilder& pipelineBuilder,
|
| - GrDrawBatch* batch) {
|
| + GrDrawBatch* batch,
|
| + const GrClip* clip) {
|
| ASSERT_SINGLE_OWNER
|
| RETURN_IF_ABANDONED
|
| SkDEBUGCODE(fDrawContext->validate();)
|
| GR_AUDIT_TRAIL_AUTO_FRAME(fDrawContext->fAuditTrail, "GrDrawContext::testingOnly_drawBatch");
|
|
|
| - fDrawContext->getDrawTarget()->drawBatch(pipelineBuilder, batch);
|
| + const GrClip& drawClip = clip ? *clip : GrClip::WideOpen();
|
| + fDrawContext->getDrawTarget()->drawBatch(pipelineBuilder, drawClip, batch);
|
| }
|
|
|
| #undef ASSERT_SINGLE_OWNER
|
|
|