| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 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 "GrAAHairLinePathRenderer.h" | 9 #include "GrAAHairLinePathRenderer.h" |
| 10 | 10 |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 drawState->setEffect(kEdgeEffectStage, hairQuadEffect, kEdgeAttrIndex)->unre
f(); | 633 drawState->setEffect(kEdgeEffectStage, hairQuadEffect, kEdgeAttrIndex)->unre
f(); |
| 634 while (quads < quadCnt) { | 634 while (quads < quadCnt) { |
| 635 int n = GrMin(quadCnt - quads, kNumQuadsInIdxBuffer); | 635 int n = GrMin(quadCnt - quads, kNumQuadsInIdxBuffer); |
| 636 target->drawIndexed(kTriangles_GrPrimitiveType, | 636 target->drawIndexed(kTriangles_GrPrimitiveType, |
| 637 4 * lineCnt + kVertsPerQuad*quads, // startV | 637 4 * lineCnt + kVertsPerQuad*quads, // startV |
| 638 0, // startI | 638 0, // startI |
| 639 kVertsPerQuad*n, // vCount | 639 kVertsPerQuad*n, // vCount |
| 640 kIdxsPerQuad*n); // iCount | 640 kIdxsPerQuad*n); // iCount |
| 641 quads += n; | 641 quads += n; |
| 642 } | 642 } |
| 643 target->resetIndexSource(); |
| 643 | 644 |
| 644 return true; | 645 return true; |
| 645 } | 646 } |
| OLD | NEW |