OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |