| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |