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 "GrConvexPolyEffect.h" | 10 #include "GrConvexPolyEffect.h" |
11 #include "GrFragmentProcessor.h" | 11 #include "GrFragmentProcessor.h" |
12 #include "GrInvariantOutput.h" | 12 #include "GrInvariantOutput.h" |
13 #include "GrOvalEffect.h" | 13 #include "GrOvalEffect.h" |
14 #include "SkRRect.h" | 14 #include "SkRRect.h" |
15 #include "gl/GrGLProcessor.h" | 15 #include "gl/GrGLProcessor.h" |
16 #include "gl/GrGLSL.h" | |
17 #include "gl/builders/GrGLProgramBuilder.h" | 16 #include "gl/builders/GrGLProgramBuilder.h" |
18 | 17 |
19 // The effects defined here only handle rrect radii >= kRadiusMin. | 18 // The effects defined here only handle rrect radii >= kRadiusMin. |
20 static const SkScalar kRadiusMin = SK_ScalarHalf; | 19 static const SkScalar kRadiusMin = SK_ScalarHalf; |
21 | 20 |
22 ////////////////////////////////////////////////////////////////////////////// | 21 ////////////////////////////////////////////////////////////////////////////// |
23 | 22 |
24 class CircularRRectEffect : public GrFragmentProcessor { | 23 class CircularRRectEffect : public GrFragmentProcessor { |
25 public: | 24 public: |
26 | 25 |
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 if (rrect.isNinePatch()) { | 732 if (rrect.isNinePatch()) { |
734 return EllipticalRRectEffect::Create(edgeType, rrect); | 733 return EllipticalRRectEffect::Create(edgeType, rrect); |
735 } | 734 } |
736 return NULL; | 735 return NULL; |
737 } | 736 } |
738 } | 737 } |
739 } | 738 } |
740 | 739 |
741 return NULL; | 740 return NULL; |
742 } | 741 } |
OLD | NEW |