| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #include "GrAtlasTextContext.h" | 9 #include "GrAtlasTextContext.h" |
| 10 #include "GrBatchTest.h" | 10 #include "GrBatchTest.h" |
| 11 #include "GrColor.h" | 11 #include "GrColor.h" |
| 12 #include "GrDrawContext.h" | 12 #include "GrDrawContext.h" |
| 13 #include "GrOvalRenderer.h" | 13 #include "GrOvalRenderer.h" |
| 14 #include "GrPathRenderer.h" | 14 #include "GrPathRenderer.h" |
| 15 #include "GrRenderTarget.h" | 15 #include "GrRenderTarget.h" |
| 16 #include "GrRenderTargetPriv.h" | 16 #include "GrRenderTargetPriv.h" |
| 17 #include "GrResourceProvider.h" |
| 17 #include "GrStencilAndCoverTextContext.h" | 18 #include "GrStencilAndCoverTextContext.h" |
| 18 | 19 |
| 19 #include "batches/GrBatch.h" | 20 #include "batches/GrBatch.h" |
| 20 #include "batches/GrDrawAtlasBatch.h" | 21 #include "batches/GrDrawAtlasBatch.h" |
| 21 #include "batches/GrDrawVerticesBatch.h" | 22 #include "batches/GrDrawVerticesBatch.h" |
| 22 #include "batches/GrRectBatchFactory.h" | 23 #include "batches/GrRectBatchFactory.h" |
| 23 | 24 |
| 24 #define ASSERT_OWNED_RESOURCE(R) SkASSERT(!(R) || (R)->getContext() == fContext) | 25 #define ASSERT_OWNED_RESOURCE(R) SkASSERT(!(R) || (R)->getContext() == fContext) |
| 25 #define RETURN_IF_ABANDONED if (!fDrawTarget) { return; } | 26 #define RETURN_IF_ABANDONED if (!fDrawTarget) { return; } |
| 26 #define RETURN_FALSE_IF_ABANDONED if (!fDrawTarget) { return false; } | 27 #define RETURN_FALSE_IF_ABANDONED if (!fDrawTarget) { return false; } |
| (...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 RETURN_FALSE_IF_ABANDONED | 756 RETURN_FALSE_IF_ABANDONED |
| 756 | 757 |
| 757 ASSERT_OWNED_RESOURCE(rt); | 758 ASSERT_OWNED_RESOURCE(rt); |
| 758 SkASSERT(rt); | 759 SkASSERT(rt); |
| 759 return true; | 760 return true; |
| 760 } | 761 } |
| 761 | 762 |
| 762 void GrDrawContext::drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* b
atch) { | 763 void GrDrawContext::drawBatch(GrPipelineBuilder* pipelineBuilder, GrDrawBatch* b
atch) { |
| 763 fDrawTarget->drawBatch(*pipelineBuilder, batch); | 764 fDrawTarget->drawBatch(*pipelineBuilder, batch); |
| 764 } | 765 } |
| OLD | NEW |