diff options
author | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-05 03:02:06 +0000 |
---|---|---|
committer | skia.committer@gmail.com <skia.committer@gmail.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-05 03:02:06 +0000 |
commit | f1f66c0c8623805fdb88f09c0d87cbdd1745e12b (patch) | |
tree | 42465865038f6aed09759cfc097719dff7393adb /src/gpu | |
parent | fab349c0bf3a305b7a7388b77bab13b0f7b37393 (diff) |
Sanitizing source files in Housekeeper-Nightly
git-svn-id: http://skia.googlecode.com/svn/trunk@13665 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu')
-rw-r--r-- | src/gpu/effects/GrRRectEffect.cpp | 6 | ||||
-rw-r--r-- | src/gpu/effects/GrRRectEffect.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/effects/GrRRectEffect.cpp b/src/gpu/effects/GrRRectEffect.cpp index 583e385869..a59018673e 100644 --- a/src/gpu/effects/GrRRectEffect.cpp +++ b/src/gpu/effects/GrRRectEffect.cpp @@ -21,7 +21,7 @@ class RRectEffect : public GrEffect { public: // This effect only supports circular corner rrects where the radius is >= kRadiusMin. static const SkScalar kRadiusMin; - + /// The types of circular corner rrects supported enum RRectType { kCircleCorner_RRectType, //<! All four corners have the same circular radius. @@ -39,7 +39,7 @@ public: const SkRRect& getRRect() const { return fRRect; } RRectType getType() const { return fRRectType; } - + EdgeType getEdgeType() const { return fEdgeType; } typedef GLRRectEffect GLEffect; @@ -221,7 +221,7 @@ void GLRRectEffect::emitCode(GrGLShaderBuilder* builder, radiusPlusHalfName); break; } - + if (kInverseFillAA_EdgeType == rre.getEdgeType()) { builder->fsCodeAppend("\t\talpha = 1.0 - alpha;\n"); } diff --git a/src/gpu/effects/GrRRectEffect.h b/src/gpu/effects/GrRRectEffect.h index 7df7e6f076..aadd8c293e 100644 --- a/src/gpu/effects/GrRRectEffect.h +++ b/src/gpu/effects/GrRRectEffect.h @@ -17,10 +17,10 @@ namespace GrRRectEffect { enum EdgeType { kFillAA_EdgeType, kInverseFillAA_EdgeType, - + kLastEdgeType = kInverseFillAA_EdgeType, }; - + static const int kEdgeTypeCnt = kLastEdgeType + 1; /** |