| 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 ASSERT_SINGLE_OWNER_PRIV | 479 ASSERT_SINGLE_OWNER_PRIV |
| 480 RETURN_IF_ABANDONED_PRIV | 480 RETURN_IF_ABANDONED_PRIV |
| 481 SkDEBUGCODE(fDrawContext->validate();) | 481 SkDEBUGCODE(fDrawContext->validate();) |
| 482 GR_AUDIT_TRAIL_AUTO_FRAME(fDrawContext->fAuditTrail, "GrDrawContextPriv::cle
arStencilClip"); | 482 GR_AUDIT_TRAIL_AUTO_FRAME(fDrawContext->fAuditTrail, "GrDrawContextPriv::cle
arStencilClip"); |
| 483 | 483 |
| 484 AutoCheckFlush acf(fDrawContext->fDrawingManager); | 484 AutoCheckFlush acf(fDrawContext->fDrawingManager); |
| 485 fDrawContext->getDrawTarget()->clearStencilClip(rect, insideClip, | 485 fDrawContext->getDrawTarget()->clearStencilClip(rect, insideClip, |
| 486 fDrawContext->accessRenderTa
rget()); | 486 fDrawContext->accessRenderTa
rget()); |
| 487 } | 487 } |
| 488 | 488 |
| 489 void GrDrawContextPriv::stencilPath(const GrPipelineBuilder& pipelineBuilder, | 489 void GrDrawContextPriv::stencilPath(const GrClip& clip, |
| 490 const GrClip& clip, | 490 const GrUserStencilSettings* ss, |
| 491 bool useHWAA, |
| 491 const SkMatrix& viewMatrix, | 492 const SkMatrix& viewMatrix, |
| 492 const GrPath* path, | 493 const GrPath* path) { |
| 493 GrPathRendering::FillType fill) { | 494 fDrawContext->getDrawTarget()->stencilPath(fDrawContext, clip, ss, useHWAA,
viewMatrix, path); |
| 494 fDrawContext->getDrawTarget()->stencilPath(pipelineBuilder, fDrawContext, | |
| 495 clip, viewMatrix, path, fill); | |
| 496 } | 495 } |
| 497 | 496 |
| 498 void GrDrawContextPriv::stencilRect(const GrFixedClip& clip, | 497 void GrDrawContextPriv::stencilRect(const GrFixedClip& clip, |
| 499 const GrUserStencilSettings* ss, | 498 const GrUserStencilSettings* ss, |
| 500 bool useHWAA, | 499 bool useHWAA, |
| 501 const SkMatrix& viewMatrix, | 500 const SkMatrix& viewMatrix, |
| 502 const SkRect& rect) { | 501 const SkRect& rect) { |
| 503 ASSERT_SINGLE_OWNER_PRIV | 502 ASSERT_SINGLE_OWNER_PRIV |
| 504 RETURN_IF_ABANDONED_PRIV | 503 RETURN_IF_ABANDONED_PRIV |
| 505 SkDEBUGCODE(fDrawContext->validate();) | 504 SkDEBUGCODE(fDrawContext->validate();) |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1178 | 1177 |
| 1179 void GrDrawContext::drawBatch(const GrPipelineBuilder& pipelineBuilder, const Gr
Clip& clip, | 1178 void GrDrawContext::drawBatch(const GrPipelineBuilder& pipelineBuilder, const Gr
Clip& clip, |
| 1180 GrDrawBatch* batch) { | 1179 GrDrawBatch* batch) { |
| 1181 ASSERT_SINGLE_OWNER | 1180 ASSERT_SINGLE_OWNER |
| 1182 RETURN_IF_ABANDONED | 1181 RETURN_IF_ABANDONED |
| 1183 SkDEBUGCODE(this->validate();) | 1182 SkDEBUGCODE(this->validate();) |
| 1184 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); | 1183 GR_AUDIT_TRAIL_AUTO_FRAME(fAuditTrail, "GrDrawContext::drawBatch"); |
| 1185 | 1184 |
| 1186 this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); | 1185 this->getDrawTarget()->drawBatch(pipelineBuilder, this, clip, batch); |
| 1187 } | 1186 } |
| OLD | NEW |