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 "GrRRectEffect.h" | 8 #include "GrRRectEffect.h" |
9 | 9 |
10 #include "gl/GrGLEffect.h" | 10 #include "gl/GrGLEffect.h" |
| 11 #include "gl/GrGLShaderBuilder.h" |
11 #include "gl/GrGLSL.h" | 12 #include "gl/GrGLSL.h" |
12 #include "GrConvexPolyEffect.h" | 13 #include "GrConvexPolyEffect.h" |
13 #include "GrOvalEffect.h" | 14 #include "GrOvalEffect.h" |
14 #include "GrTBackendEffectFactory.h" | 15 #include "GrTBackendEffectFactory.h" |
15 | 16 |
16 #include "SkRRect.h" | 17 #include "SkRRect.h" |
17 | 18 |
18 // The effects defined here only handle rrect radii >= kRadiusMin. | 19 // The effects defined here only handle rrect radii >= kRadiusMin. |
19 static const SkScalar kRadiusMin = SK_ScalarHalf; | 20 static const SkScalar kRadiusMin = SK_ScalarHalf; |
20 | 21 |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 if (rrect.isNinePatch()) { | 721 if (rrect.isNinePatch()) { |
721 return EllipticalRRectEffect::Create(edgeType, rrect); | 722 return EllipticalRRectEffect::Create(edgeType, rrect); |
722 } | 723 } |
723 return NULL; | 724 return NULL; |
724 } | 725 } |
725 } | 726 } |
726 } | 727 } |
727 | 728 |
728 return NULL; | 729 return NULL; |
729 } | 730 } |
OLD | NEW |