Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: src/gpu/GrDrawContext.cpp

Issue 2147443004: Retract PipelineBuilder from GrClip::apply (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Appease some compilers Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrDrawContextPriv.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskManager.cpp ('k') | src/gpu/GrDrawContextPriv.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698