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