| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "GrBatchTest.h" | 8 #include "GrBatchTest.h" |
| 9 #include "GrColor.h" | 9 #include "GrColor.h" |
| 10 #include "GrDrawContext.h" | 10 #include "GrDrawContext.h" |
| 11 #include "GrDrawContextPriv.h" | 11 #include "GrDrawContextPriv.h" |
| 12 #include "GrDrawingManager.h" | 12 #include "GrDrawingManager.h" |
| 13 #include "GrOvalRenderer.h" | 13 #include "GrOvalRenderer.h" |
| 14 #include "GrPathRenderer.h" | 14 #include "GrPathRenderer.h" |
| 15 #include "GrPipelineBuilder.h" |
| 15 #include "GrRenderTarget.h" | 16 #include "GrRenderTarget.h" |
| 16 #include "GrRenderTargetPriv.h" | 17 #include "GrRenderTargetPriv.h" |
| 17 #include "GrResourceProvider.h" | 18 #include "GrResourceProvider.h" |
| 18 #include "SkSurfacePriv.h" | 19 #include "SkSurfacePriv.h" |
| 19 | 20 |
| 20 #include "batches/GrBatch.h" | 21 #include "batches/GrBatch.h" |
| 21 #include "batches/GrClearBatch.h" | 22 #include "batches/GrClearBatch.h" |
| 22 #include "batches/GrDrawAtlasBatch.h" | 23 #include "batches/GrDrawAtlasBatch.h" |
| 23 #include "batches/GrDrawVerticesBatch.h" | 24 #include "batches/GrDrawVerticesBatch.h" |
| 24 #include "batches/GrRectBatchFactory.h" | 25 #include "batches/GrRectBatchFactory.h" |
| (...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 | 1242 |
| 1242 void GrDrawContext::drawBatch(const GrPipelineBuilder& pipelineBuilder, const Gr
Clip& clip, | 1243 void GrDrawContext::drawBatch(const GrPipelineBuilder& pipelineBuilder, const Gr
Clip& clip, |
| 1243 GrDrawBatch* batch) { | 1244 GrDrawBatch* batch) { |
| 1244 ASSERT_SINGLE_OWNER | 1245 ASSERT_SINGLE_OWNER |
| 1245 RETURN_IF_ABANDONED | 1246 RETURN_IF_ABANDONED |
| 1246 SkDEBUGCODE(this->validate();) | 1247 SkDEBUGCODE(this->validate();) |
| 1247 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); | 1248 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); |
| 1248 | 1249 |
| 1249 this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); | 1250 this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); |
| 1250 } | 1251 } |
| OLD | NEW |