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" |
11 #include "GrContext.h" | 11 #include "GrContext.h" |
12 #include "GrDrawContextPriv.h" | 12 #include "GrDrawContextPriv.h" |
13 #include "GrDrawPathBatch.h" | 13 #include "GrDrawPathBatch.h" |
| 14 #include "GrFixedClip.h" |
14 #include "GrGpu.h" | 15 #include "GrGpu.h" |
15 #include "GrPath.h" | 16 #include "GrPath.h" |
16 #include "GrPipelineBuilder.h" | 17 #include "GrPipelineBuilder.h" |
17 #include "GrRenderTarget.h" | 18 #include "GrRenderTarget.h" |
18 #include "GrResourceProvider.h" | 19 #include "GrResourceProvider.h" |
19 #include "GrStencilPathBatch.h" | 20 #include "GrStencilPathBatch.h" |
20 #include "GrStyle.h" | 21 #include "GrStyle.h" |
21 #include "batches/GrRectBatchFactory.h" | 22 #include "batches/GrRectBatchFactory.h" |
22 | 23 |
23 GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resour
ceProvider, | 24 GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resour
ceProvider, |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 if (args.fAntiAlias) { | 162 if (args.fAntiAlias) { |
162 SkASSERT(args.fDrawContext->isStencilBufferMultisampled()); | 163 SkASSERT(args.fDrawContext->isStencilBufferMultisampled()); |
163 pipelineBuilder.enableState(GrPipelineBuilder::kHWAntialias_Flag); | 164 pipelineBuilder.enableState(GrPipelineBuilder::kHWAntialias_Flag); |
164 } | 165 } |
165 | 166 |
166 args.fDrawContext->drawBatch(pipelineBuilder, *args.fClip, batch); | 167 args.fDrawContext->drawBatch(pipelineBuilder, *args.fClip, batch); |
167 } | 168 } |
168 | 169 |
169 return true; | 170 return true; |
170 } | 171 } |
OLD | NEW |