Attempt to fix -1->unsigned warning on mac 10.6

TBR=bungeman@google.com

Review URL: https://codereview.chromium.org/199433002

git-svn-id: http://skia.googlecode.com/svn/trunk@13796 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bsalomon@google.com 2014-03-13 19:20:32 +00:00
parent 0f10f7bf1f
commit 44a435bc1a

View File

@ -669,19 +669,19 @@ GrEffectRef* GrRRectEffect::Create(GrEffectEdgeType edgeType, const SkRRect& rre
continue;
}
if (r.fX != r.fY) {
cornerFlags = -1;
cornerFlags = ~0U;
break;
}
if (!cornerFlags) {
radius = r.fX;
if (radius < CircularRRectEffect::kRadiusMin) {
cornerFlags = -1;
cornerFlags = ~0U;
break;
}
cornerFlags = 1 << c;
} else {
if (r.fX != radius) {
cornerFlags = -1;
cornerFlags = ~0U;
break;
}
cornerFlags |= 1 << c;