diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-11-10 15:28:16 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-11-10 15:28:16 +0000 |
commit | e7160bff74161e225c2ff288197f8f947a2cf4bc (patch) | |
tree | 8fcb41b1febc08c8e4ee8e1146dda05d5e535217 /include | |
parent | 830a23e39bb4a126e573940cd6e354732e295b10 (diff) |
Fix convert to bool warning in VS
http://codereview.appspot.com/5371051/
git-svn-id: http://skia.googlecode.com/svn/trunk@2658 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/gpu/GrSamplerState.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/gpu/GrSamplerState.h b/include/gpu/GrSamplerState.h index ed49593210..7c9bf133f1 100644 --- a/include/gpu/GrSamplerState.h +++ b/include/gpu/GrSamplerState.h @@ -216,7 +216,7 @@ public: GrScalar getRadial2CenterX1() const { return fRadial2CenterX1; } GrScalar getRadial2Radius0() const { return fRadial2Radius0; } - bool isRadial2PosRoot() const { return fRadial2PosRoot; } + bool isRadial2PosRoot() const { return SkToBool(fRadial2PosRoot); } // do the radial gradient params lead to a linear (rather than quadratic) // equation. bool radial2IsDegenerate() const { return GR_Scalar1 == fRadial2CenterX1; } |