From e7160bff74161e225c2ff288197f8f947a2cf4bc Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Thu, 10 Nov 2011 15:28:16 +0000 Subject: [PATCH] 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 --- include/gpu/GrSamplerState.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }