Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@5577 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
skia.committer@gmail.com 2012-09-18 02:01:09 +00:00
parent b1b7f70790
commit 54339a826e
2 changed files with 7 additions and 7 deletions

View File

@ -37,10 +37,10 @@ protected:
rec->drawColor(0xffff0000);
rec->save();
SkRect r = {
SkIntToScalar(-extents),
SkIntToScalar(offset - extents),
SkIntToScalar(extents),
SkIntToScalar(offset + extents)
SkIntToScalar(-extents),
SkIntToScalar(offset - extents),
SkIntToScalar(extents),
SkIntToScalar(offset + extents)
};
SkPath p;
p.addRoundRect(r, 5, 5);
@ -56,7 +56,7 @@ protected:
// Finally we play the part of that second picture that should be green into the canvas.
canvas->save();
canvas->translate(SkIntToScalar(extents / 2),
canvas->translate(SkIntToScalar(extents / 2),
SkIntToScalar(-(offset - extents / 2)));
pict2.draw(canvas);
canvas->restore();

View File

@ -122,8 +122,8 @@ int SkWGLExtensions::selectFormat(const int formats[],
SK_WGL_COLOR_SAMPLES,
};
int answers[2];
int queryAttrCnt = supportsCoverage ?
SK_ARRAY_COUNT(queryAttrs) :
int queryAttrCnt = supportsCoverage ?
SK_ARRAY_COUNT(queryAttrs) :
SK_ARRAY_COUNT(queryAttrs) - 1;
this->getPixelFormatAttribiv(dc,
formats[i],