OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 #ifndef GrDrawPathBatch_DEFINED | 8 #ifndef GrDrawPathBatch_DEFINED |
9 #define GrDrawPathBatch_DEFINED | 9 #define GrDrawPathBatch_DEFINED |
10 | 10 |
11 #include "GrBatchFlushState.h" | 11 #include "GrBatchFlushState.h" |
12 #include "GrDrawBatch.h" | 12 #include "GrDrawBatch.h" |
13 #include "GrGpu.h" | 13 #include "GrGpu.h" |
14 #include "GrPath.h" | 14 #include "GrPath.h" |
15 #include "GrPathRendering.h" | 15 #include "GrPathRendering.h" |
16 #include "GrPathProcessor.h" | 16 #include "GrPathProcessor.h" |
| 17 #include "GrStencilSettings.h" |
17 | 18 |
18 #include "SkTLList.h" | 19 #include "SkTLList.h" |
19 | 20 |
20 class GrDrawPathBatchBase : public GrDrawBatch { | 21 class GrDrawPathBatchBase : public GrDrawBatch { |
21 public: | 22 public: |
22 void computePipelineOptimizations(GrInitInvariantOutput* color, | 23 void computePipelineOptimizations(GrInitInvariantOutput* color, |
23 GrInitInvariantOutput* coverage, | 24 GrInitInvariantOutput* coverage, |
24 GrBatchToXPOverrides* overrides) const ove
rride { | 25 GrBatchToXPOverrides* overrides) const ove
rride { |
25 color->setKnownFourComponents(fColor); | 26 color->setKnownFourComponents(fColor); |
26 coverage->setKnownSingleComponent(0xff); | 27 coverage->setKnownSingleComponent(0xff); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 193 |
193 PendingPathRange fPathRange; | 194 PendingPathRange fPathRange; |
194 DrawList fDraws; | 195 DrawList fDraws; |
195 int fTotalPathCount; | 196 int fTotalPathCount; |
196 SkScalar fScale; | 197 SkScalar fScale; |
197 | 198 |
198 typedef GrDrawPathBatchBase INHERITED; | 199 typedef GrDrawPathBatchBase INHERITED; |
199 }; | 200 }; |
200 | 201 |
201 #endif | 202 #endif |
OLD | NEW |