OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 #include "GrOvalRenderer.h" | 8 #include "GrOvalRenderer.h" |
9 | 9 |
10 #include "GrEffect.h" | 10 #include "GrEffect.h" |
11 #include "gl/GrGLEffect.h" | 11 #include "gl/GrGLEffect.h" |
12 #include "gl/GrGLSL.h" | 12 #include "gl/GrGLSL.h" |
| 13 #include "gl/GrGLShaderBuilder.h" |
13 #include "gl/GrGLVertexEffect.h" | 14 #include "gl/GrGLVertexEffect.h" |
14 #include "GrTBackendEffectFactory.h" | 15 #include "GrTBackendEffectFactory.h" |
15 | 16 |
16 #include "GrDrawState.h" | 17 #include "GrDrawState.h" |
17 #include "GrDrawTarget.h" | 18 #include "GrDrawTarget.h" |
18 #include "GrGpu.h" | 19 #include "GrGpu.h" |
19 | 20 |
20 #include "SkRRect.h" | 21 #include "SkRRect.h" |
21 #include "SkStrokeRec.h" | 22 #include "SkStrokeRec.h" |
22 #include "SkTLazy.h" | 23 #include "SkTLazy.h" |
(...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1215 | 1216 |
1216 // drop out the middle quad if we're stroked | 1217 // drop out the middle quad if we're stroked |
1217 int indexCnt = isStrokeOnly ? SK_ARRAY_COUNT(gRRectIndices) - 6 : | 1218 int indexCnt = isStrokeOnly ? SK_ARRAY_COUNT(gRRectIndices) - 6 : |
1218 SK_ARRAY_COUNT(gRRectIndices); | 1219 SK_ARRAY_COUNT(gRRectIndices); |
1219 target->setIndexSourceToBuffer(indexBuffer); | 1220 target->setIndexSourceToBuffer(indexBuffer); |
1220 target->drawIndexed(kTriangles_GrPrimitiveType, 0, 0, 16, indexCnt, &bou
nds); | 1221 target->drawIndexed(kTriangles_GrPrimitiveType, 0, 0, 16, indexCnt, &bou
nds); |
1221 } | 1222 } |
1222 | 1223 |
1223 return true; | 1224 return true; |
1224 } | 1225 } |
OLD | NEW |