Index: src/gpu/GrTest.cpp |
diff --git a/src/gpu/GrTest.cpp b/src/gpu/GrTest.cpp |
index 56037d11f504fa702bb4a1f0c6a92ffe672b894e..9a37f2b82fb764c828fa1854e9913098e61bbd50 100644 |
--- a/src/gpu/GrTest.cpp |
+++ b/src/gpu/GrTest.cpp |
@@ -9,7 +9,7 @@ |
#include "GrBatchAtlas.h" |
#include "GrContextOptions.h" |
-#include "GrDrawContextPriv.h" |
+#include "GrDrawContext.h" |
#include "GrDrawingManager.h" |
#include "GrGpuResourceCacheAccess.h" |
#include "GrResourceCache.h" |
@@ -258,17 +258,17 @@ |
/////////////////////////////////////////////////////////////////////////////// |
#define ASSERT_SINGLE_OWNER \ |
- SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(fDrawContext->fSingleOwner);) |
-#define RETURN_IF_ABANDONED if (fDrawContext->fDrawingManager->abandoned()) { return; } |
- |
-void GrDrawContextPriv::testingOnly_drawBatch(const GrPipelineBuilder& pipelineBuilder, |
- GrDrawBatch* batch) { |
+ SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(fSingleOwner);) |
+#define RETURN_IF_ABANDONED if (fDrawingManager->abandoned()) { return; } |
+ |
+void GrDrawContext::internal_drawBatch(const GrPipelineBuilder& pipelineBuilder, |
+ GrDrawBatch* batch) { |
ASSERT_SINGLE_OWNER |
RETURN_IF_ABANDONED |
- SkDEBUGCODE(fDrawContext->validate();) |
- GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::testingOnly_drawBatch"); |
- |
- fDrawContext->getDrawTarget()->drawBatch(pipelineBuilder, batch); |
+ SkDEBUGCODE(this->validate();) |
+ GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::internal_drawBatch"); |
+ |
+ this->getDrawTarget()->drawBatch(pipelineBuilder, batch); |
} |
#undef ASSERT_SINGLE_OWNER |