| 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" |
| (...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 } | 1108 } |
| 1109 | 1109 |
| 1110 void GrDrawContext::prepareForExternalIO() { | 1110 void GrDrawContext::prepareForExternalIO() { |
| 1111 ASSERT_SINGLE_OWNER | 1111 ASSERT_SINGLE_OWNER |
| 1112 RETURN_IF_ABANDONED | 1112 RETURN_IF_ABANDONED |
| 1113 SkDEBUGCODE(this->validate();) | 1113 SkDEBUGCODE(this->validate();) |
| 1114 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::prepareForExternalIO"
); | 1114 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::prepareForExternalIO"
); |
| 1115 | 1115 |
| 1116 ASSERT_OWNED_RESOURCE(fRenderTarget); | 1116 ASSERT_OWNED_RESOURCE(fRenderTarget); |
| 1117 | 1117 |
| 1118 fDrawingManager->getContext()->prepareSurfaceForExternalIO(fRenderTarget.get
()); | 1118 fDrawingManager->prepareSurfaceForExternalIO(fRenderTarget.get()); |
| 1119 } | 1119 } |
| 1120 | 1120 |
| 1121 void GrDrawContext::drawNonAAFilledRect(const GrClip& clip, | 1121 void GrDrawContext::drawNonAAFilledRect(const GrClip& clip, |
| 1122 const GrPaint& paint, | 1122 const GrPaint& paint, |
| 1123 const SkMatrix& viewMatrix, | 1123 const SkMatrix& viewMatrix, |
| 1124 const SkRect& rect, | 1124 const SkRect& rect, |
| 1125 const SkRect* localRect, | 1125 const SkRect* localRect, |
| 1126 const SkMatrix* localMatrix, | 1126 const SkMatrix* localMatrix, |
| 1127 const GrUserStencilSettings* ss, | 1127 const GrUserStencilSettings* ss, |
| 1128 bool useHWAA) { | 1128 bool useHWAA) { |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 | 1428 |
| 1429 void GrDrawContext::drawBatch(const GrPipelineBuilder& pipelineBuilder, const Gr
Clip& clip, | 1429 void GrDrawContext::drawBatch(const GrPipelineBuilder& pipelineBuilder, const Gr
Clip& clip, |
| 1430 GrDrawBatch* batch) { | 1430 GrDrawBatch* batch) { |
| 1431 ASSERT_SINGLE_OWNER | 1431 ASSERT_SINGLE_OWNER |
| 1432 RETURN_IF_ABANDONED | 1432 RETURN_IF_ABANDONED |
| 1433 SkDEBUGCODE(this->validate();) | 1433 SkDEBUGCODE(this->validate();) |
| 1434 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); | 1434 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); |
| 1435 | 1435 |
| 1436 this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); | 1436 this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); |
| 1437 } | 1437 } |
| OLD | NEW |