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

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: 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
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 GrUserStencilSettings::StaticInit< 138 GrUserStencilSettings::StaticInit<
139 0x0000, 139 0x0000,
140 GrUserStencilTest::kNotEqual, 140 GrUserStencilTest::kNotEqual,
141 0xffff, 141 0xffff,
142 GrUserStencilOp::kZero, 142 GrUserStencilOp::kZero,
143 GrUserStencilOp::kKeep, 143 GrUserStencilOp::kKeep,
144 0xffff>() 144 0xffff>()
145 ); 145 );
146 146
147 pipelineBuilder->setUserStencil(&kCoverPass); 147 pipelineBuilder->setUserStencil(&kCoverPass);
148 SkAutoTUnref<GrDrawPathBatchBase> batch( 148 SkAutoTUnref<GrDrawBatch> batch(
149 GrDrawPathBatch::Create(viewMatrix, args.fColor, p->getFillType( ), p)); 149 GrDrawPathBatch::Create(viewMatrix, args.fColor, p->getFillType( ), p));
150 args.fTarget->drawPathBatch(*pipelineBuilder, batch); 150 args.fTarget->drawBatch(*pipelineBuilder, batch);
151 } 151 }
152 152
153 pipelineBuilder->disableUserStencil(); 153 pipelineBuilder->disableUserStencil();
154 return true; 154 return true;
155 } 155 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698