OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 #include "GrAAConvexPathRenderer.h" | 9 #include "GrAAConvexPathRenderer.h" |
10 | 10 |
11 #include "GrContext.h" | 11 #include "GrContext.h" |
12 #include "GrDrawState.h" | 12 #include "GrDrawState.h" |
| 13 #include "GrDrawTargetCaps.h" |
13 #include "GrPathUtils.h" | 14 #include "GrPathUtils.h" |
14 #include "SkString.h" | 15 #include "SkString.h" |
15 #include "SkStrokeRec.h" | 16 #include "SkStrokeRec.h" |
16 #include "SkTrace.h" | 17 #include "SkTrace.h" |
17 | 18 |
18 GrAAConvexPathRenderer::GrAAConvexPathRenderer() { | 19 GrAAConvexPathRenderer::GrAAConvexPathRenderer() { |
19 } | 20 } |
20 | 21 |
21 namespace { | 22 namespace { |
22 | 23 |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 drawState->setVertexEdgeType(GrDrawState::kQuad_EdgeType); | 504 drawState->setVertexEdgeType(GrDrawState::kQuad_EdgeType); |
504 target->drawIndexed(kTriangles_GrPrimitiveType, | 505 target->drawIndexed(kTriangles_GrPrimitiveType, |
505 0, // start vertex | 506 0, // start vertex |
506 0, // start index | 507 0, // start index |
507 vCount, | 508 vCount, |
508 iCount); | 509 iCount); |
509 drawState->setVertexEdgeType(oldEdgeType); | 510 drawState->setVertexEdgeType(oldEdgeType); |
510 | 511 |
511 return true; | 512 return true; |
512 } | 513 } |
OLD | NEW |