| 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/GrGLFragmentProcessor.h" |
| 16 #include "gl/builders/GrGLProgramBuilder.h" | 16 #include "gl/builders/GrGLProgramBuilder.h" |
| 17 | 17 |
| 18 // The effects defined here only handle rrect radii >= kRadiusMin. | 18 // The effects defined here only handle rrect radii >= kRadiusMin. |
| 19 static const SkScalar kRadiusMin = SK_ScalarHalf; | 19 static const SkScalar kRadiusMin = SK_ScalarHalf; |
| 20 | 20 |
| 21 ////////////////////////////////////////////////////////////////////////////// | 21 ////////////////////////////////////////////////////////////////////////////// |
| 22 | 22 |
| 23 class CircularRRectEffect : public GrFragmentProcessor { | 23 class CircularRRectEffect : public GrFragmentProcessor { |
| 24 public: | 24 public: |
| 25 | 25 |
| (...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 if (rrect.isNinePatch()) { | 727 if (rrect.isNinePatch()) { |
| 728 return EllipticalRRectEffect::Create(edgeType, rrect); | 728 return EllipticalRRectEffect::Create(edgeType, rrect); |
| 729 } | 729 } |
| 730 return NULL; | 730 return NULL; |
| 731 } | 731 } |
| 732 } | 732 } |
| 733 } | 733 } |
| 734 | 734 |
| 735 return NULL; | 735 return NULL; |
| 736 } | 736 } |
| OLD | NEW |