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

Side by Side Diff: src/gpu/batches/GrStencilAndCoverPathRenderer.cpp

Issue 1966763002: Eliminate special case nvpr batch handling (Closed) Base URL: https://skia.googlesource.com/skia.git@reallyupload_userstencil
Patch Set: fixes Created 4 years, 7 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/batches/GrDrawPathBatch.cpp ('k') | src/gpu/batches/GrStencilPathBatch.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 2012 Google Inc. 2 * Copyright 2012 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 8
9 #include "GrStencilAndCoverPathRenderer.h" 9 #include "GrStencilAndCoverPathRenderer.h"
10 #include "GrCaps.h" 10 #include "GrCaps.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 GrUserStencilSettings::StaticInit< 140 GrUserStencilSettings::StaticInit<
141 0x0000, 141 0x0000,
142 GrUserStencilTest::kNotEqual, 142 GrUserStencilTest::kNotEqual,
143 0xffff, 143 0xffff,
144 GrUserStencilOp::kZero, 144 GrUserStencilOp::kZero,
145 GrUserStencilOp::kKeep, 145 GrUserStencilOp::kKeep,
146 0xffff>() 146 0xffff>()
147 ); 147 );
148 148
149 pipelineBuilder->setUserStencil(&kCoverPass); 149 pipelineBuilder->setUserStencil(&kCoverPass);
150 SkAutoTUnref<GrDrawPathBatchBase> batch( 150 SkAutoTUnref<GrDrawBatch> batch(
151 GrDrawPathBatch::Create(viewMatrix, args.fColor, p->getFillType( ), p)); 151 GrDrawPathBatch::Create(viewMatrix, args.fColor, p->getFillType( ), p));
152 args.fTarget->drawPathBatch(*pipelineBuilder, batch); 152 args.fTarget->drawBatch(*pipelineBuilder, batch);
153 } 153 }
154 154
155 pipelineBuilder->disableUserStencil(); 155 pipelineBuilder->disableUserStencil();
156 return true; 156 return true;
157 } 157 }
OLDNEW
« no previous file with comments | « src/gpu/batches/GrDrawPathBatch.cpp ('k') | src/gpu/batches/GrStencilPathBatch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698