| 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 RETURN_IF_ABANDONED_PRIV | 540 RETURN_IF_ABANDONED_PRIV |
| 541 SkDEBUGCODE(fDrawContext->validate();) | 541 SkDEBUGCODE(fDrawContext->validate();) |
| 542 GR_AUDIT_TRAIL_AUTO_FRAME(fDrawContext->fAuditTrail, "GrDrawContextPriv::cle
arStencilClip"); | 542 GR_AUDIT_TRAIL_AUTO_FRAME(fDrawContext->fAuditTrail, "GrDrawContextPriv::cle
arStencilClip"); |
| 543 | 543 |
| 544 AutoCheckFlush acf(fDrawContext->fDrawingManager); | 544 AutoCheckFlush acf(fDrawContext->fDrawingManager); |
| 545 fDrawContext->getDrawTarget()->clearStencilClip(rect, insideClip, | 545 fDrawContext->getDrawTarget()->clearStencilClip(rect, insideClip, |
| 546 fDrawContext->accessRenderTa
rget()); | 546 fDrawContext->accessRenderTa
rget()); |
| 547 } | 547 } |
| 548 | 548 |
| 549 void GrDrawContextPriv::stencilPath(const GrClip& clip, | 549 void GrDrawContextPriv::stencilPath(const GrClip& clip, |
| 550 const GrUserStencilSettings* ss, | |
| 551 bool useHWAA, | 550 bool useHWAA, |
| 552 const SkMatrix& viewMatrix, | 551 const SkMatrix& viewMatrix, |
| 553 const GrPath* path) { | 552 const GrPath* path) { |
| 554 fDrawContext->getDrawTarget()->stencilPath(fDrawContext, clip, ss, useHWAA,
viewMatrix, path); | 553 fDrawContext->getDrawTarget()->stencilPath(fDrawContext, clip, useHWAA, view
Matrix, path); |
| 555 } | 554 } |
| 556 | 555 |
| 557 void GrDrawContextPriv::stencilRect(const GrFixedClip& clip, | 556 void GrDrawContextPriv::stencilRect(const GrFixedClip& clip, |
| 558 const GrUserStencilSettings* ss, | 557 const GrUserStencilSettings* ss, |
| 559 bool useHWAA, | 558 bool useHWAA, |
| 560 const SkMatrix& viewMatrix, | 559 const SkMatrix& viewMatrix, |
| 561 const SkRect& rect) { | 560 const SkRect& rect) { |
| 562 ASSERT_SINGLE_OWNER_PRIV | 561 ASSERT_SINGLE_OWNER_PRIV |
| 563 RETURN_IF_ABANDONED_PRIV | 562 RETURN_IF_ABANDONED_PRIV |
| 564 SkDEBUGCODE(fDrawContext->validate();) | 563 SkDEBUGCODE(fDrawContext->validate();) |
| (...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1303 | 1302 |
| 1304 void GrDrawContext::drawBatch(const GrPipelineBuilder& pipelineBuilder, const Gr
Clip& clip, | 1303 void GrDrawContext::drawBatch(const GrPipelineBuilder& pipelineBuilder, const Gr
Clip& clip, |
| 1305 GrDrawBatch* batch) { | 1304 GrDrawBatch* batch) { |
| 1306 ASSERT_SINGLE_OWNER | 1305 ASSERT_SINGLE_OWNER |
| 1307 RETURN_IF_ABANDONED | 1306 RETURN_IF_ABANDONED |
| 1308 SkDEBUGCODE(this->validate();) | 1307 SkDEBUGCODE(this->validate();) |
| 1309 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); | 1308 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); |
| 1310 | 1309 |
| 1311 this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); | 1310 this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); |
| 1312 } | 1311 } |
| OLD | NEW |