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" | |
16 #include "GrRenderTarget.h" | 15 #include "GrRenderTarget.h" |
17 #include "GrRenderTargetPriv.h" | 16 #include "GrRenderTargetPriv.h" |
18 #include "GrResourceProvider.h" | 17 #include "GrResourceProvider.h" |
19 #include "SkSurfacePriv.h" | 18 #include "SkSurfacePriv.h" |
20 | 19 |
21 #include "batches/GrBatch.h" | 20 #include "batches/GrBatch.h" |
22 #include "batches/GrClearBatch.h" | 21 #include "batches/GrClearBatch.h" |
23 #include "batches/GrDrawAtlasBatch.h" | 22 #include "batches/GrDrawAtlasBatch.h" |
24 #include "batches/GrDrawVerticesBatch.h" | 23 #include "batches/GrDrawVerticesBatch.h" |
25 #include "batches/GrRectBatchFactory.h" | 24 #include "batches/GrRectBatchFactory.h" |
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1242 | 1241 |
1243 void GrDrawContext::drawBatch(const GrPipelineBuilder& pipelineBuilder, const Gr
Clip& clip, | 1242 void GrDrawContext::drawBatch(const GrPipelineBuilder& pipelineBuilder, const Gr
Clip& clip, |
1244 GrDrawBatch* batch) { | 1243 GrDrawBatch* batch) { |
1245 ASSERT_SINGLE_OWNER | 1244 ASSERT_SINGLE_OWNER |
1246 RETURN_IF_ABANDONED | 1245 RETURN_IF_ABANDONED |
1247 SkDEBUGCODE(this->validate();) | 1246 SkDEBUGCODE(this->validate();) |
1248 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); | 1247 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); |
1249 | 1248 |
1250 this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); | 1249 this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); |
1251 } | 1250 } |
OLD | NEW |