| 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 "gl/builders/GrGLProgramBuilder.h" | |
| 9 #include "GrOvalRenderer.h" | 8 #include "GrOvalRenderer.h" |
| 10 | 9 |
| 11 #include "GrEffect.h" | 10 #include "gl/builders/GrGLFullProgramBuilder.h" |
| 12 #include "gl/GrGLEffect.h" | 11 #include "gl/GrGLEffect.h" |
| 13 #include "gl/GrGLSL.h" | 12 #include "gl/GrGLSL.h" |
| 14 #include "gl/GrGLGeometryProcessor.h" | 13 #include "gl/GrGLGeometryProcessor.h" |
| 14 #include "GrEffect.h" |
| 15 #include "GrTBackendEffectFactory.h" | 15 #include "GrTBackendEffectFactory.h" |
| 16 | 16 |
| 17 #include "GrDrawState.h" | 17 #include "GrDrawState.h" |
| 18 #include "GrDrawTarget.h" | 18 #include "GrDrawTarget.h" |
| 19 #include "GrGpu.h" | 19 #include "GrGpu.h" |
| 20 | 20 |
| 21 #include "SkRRect.h" | 21 #include "SkRRect.h" |
| 22 #include "SkStrokeRec.h" | 22 #include "SkStrokeRec.h" |
| 23 #include "SkTLazy.h" | 23 #include "SkTLazy.h" |
| 24 | 24 |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1235 | 1235 |
| 1236 // drop out the middle quad if we're stroked | 1236 // drop out the middle quad if we're stroked |
| 1237 int indexCnt = isStrokeOnly ? SK_ARRAY_COUNT(gRRectIndices) - 6 : | 1237 int indexCnt = isStrokeOnly ? SK_ARRAY_COUNT(gRRectIndices) - 6 : |
| 1238 SK_ARRAY_COUNT(gRRectIndices); | 1238 SK_ARRAY_COUNT(gRRectIndices); |
| 1239 target->setIndexSourceToBuffer(indexBuffer); | 1239 target->setIndexSourceToBuffer(indexBuffer); |
| 1240 target->drawIndexed(kTriangles_GrPrimitiveType, 0, 0, 16, indexCnt, &bou
nds); | 1240 target->drawIndexed(kTriangles_GrPrimitiveType, 0, 0, 16, indexCnt, &bou
nds); |
| 1241 } | 1241 } |
| 1242 | 1242 |
| 1243 return true; | 1243 return true; |
| 1244 } | 1244 } |
| OLD | NEW |