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:
parent
b1b7f70790
commit
54339a826e
@ -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();
|
||||
|
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user