OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 "GrDashingEffect.h" | 8 #include "GrDashingEffect.h" |
10 | 9 |
11 #include "../GrAARectRenderer.h" | 10 #include "../GrAARectRenderer.h" |
12 | 11 |
13 #include "effects/GrGeometryProcessor.h" | 12 #include "effects/GrGeometryProcessor.h" |
| 13 #include "gl/builders/GrGLFullProgramBuilder.h" |
14 #include "gl/GrGLEffect.h" | 14 #include "gl/GrGLEffect.h" |
15 #include "gl/GrGLGeometryProcessor.h" | 15 #include "gl/GrGLGeometryProcessor.h" |
16 #include "gl/GrGLSL.h" | 16 #include "gl/GrGLSL.h" |
17 #include "GrContext.h" | 17 #include "GrContext.h" |
18 #include "GrCoordTransform.h" | 18 #include "GrCoordTransform.h" |
19 #include "GrDrawTarget.h" | 19 #include "GrDrawTarget.h" |
20 #include "GrDrawTargetCaps.h" | 20 #include "GrDrawTargetCaps.h" |
21 #include "GrEffect.h" | 21 #include "GrEffect.h" |
22 #include "GrGpu.h" | 22 #include "GrGpu.h" |
23 #include "GrStrokeInfo.h" | 23 #include "GrStrokeInfo.h" |
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
860 switch (cap) { | 860 switch (cap) { |
861 case GrDashingEffect::kRound_DashCap: | 861 case GrDashingEffect::kRound_DashCap: |
862 return DashingCircleEffect::Create(edgeType, info, SkScalarHalf(stro
keWidth)); | 862 return DashingCircleEffect::Create(edgeType, info, SkScalarHalf(stro
keWidth)); |
863 case GrDashingEffect::kNonRound_DashCap: | 863 case GrDashingEffect::kNonRound_DashCap: |
864 return DashingLineEffect::Create(edgeType, info, strokeWidth); | 864 return DashingLineEffect::Create(edgeType, info, strokeWidth); |
865 default: | 865 default: |
866 SkFAIL("Unexpected dashed cap."); | 866 SkFAIL("Unexpected dashed cap."); |
867 } | 867 } |
868 return NULL; | 868 return NULL; |
869 } | 869 } |
OLD | NEW |