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 "GrDashingEffect.h" | 8 #include "GrDashingEffect.h" |
9 | 9 |
10 #include "../GrAARectRenderer.h" | 10 #include "../GrAARectRenderer.h" |
11 | 11 |
12 #include "effects/GrVertexEffect.h" | 12 #include "effects/GrVertexEffect.h" |
13 #include "gl/GrGLEffect.h" | 13 #include "gl/GrGLEffect.h" |
14 #include "gl/GrGLVertexEffect.h" | 14 #include "gl/GrGLVertexEffect.h" |
| 15 #include "gl/GrGLShaderBuilder.h" |
15 #include "gl/GrGLSL.h" | 16 #include "gl/GrGLSL.h" |
16 #include "GrContext.h" | 17 #include "GrContext.h" |
17 #include "GrCoordTransform.h" | 18 #include "GrCoordTransform.h" |
18 #include "GrDrawTarget.h" | 19 #include "GrDrawTarget.h" |
19 #include "GrDrawTargetCaps.h" | 20 #include "GrDrawTargetCaps.h" |
20 #include "GrEffect.h" | 21 #include "GrEffect.h" |
21 #include "GrGpu.h" | 22 #include "GrGpu.h" |
22 #include "GrStrokeInfo.h" | 23 #include "GrStrokeInfo.h" |
23 #include "GrTBackendEffectFactory.h" | 24 #include "GrTBackendEffectFactory.h" |
24 #include "SkGr.h" | 25 #include "SkGr.h" |
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 switch (cap) { | 842 switch (cap) { |
842 case GrDashingEffect::kRound_DashCap: | 843 case GrDashingEffect::kRound_DashCap: |
843 return DashingCircleEffect::Create(edgeType, info, SkScalarHalf(stro
keWidth)); | 844 return DashingCircleEffect::Create(edgeType, info, SkScalarHalf(stro
keWidth)); |
844 case GrDashingEffect::kNonRound_DashCap: | 845 case GrDashingEffect::kNonRound_DashCap: |
845 return DashingLineEffect::Create(edgeType, info, strokeWidth); | 846 return DashingLineEffect::Create(edgeType, info, strokeWidth); |
846 default: | 847 default: |
847 SkFAIL("Unexpected dashed cap."); | 848 SkFAIL("Unexpected dashed cap."); |
848 } | 849 } |
849 return NULL; | 850 return NULL; |
850 } | 851 } |
OLD | NEW |