зеркало из https://github.com/mozilla/moz-skia.git
Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@7240 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
100b1c5e9e
Коммит
4d28d9889b
|
@ -26,7 +26,7 @@ static void draw_2_bitmaps(SkCanvas* canvas, const SkBitmap& bm, bool doClip,
|
|||
SkAutoCanvasRestore acr(canvas, true);
|
||||
SkPaint paint;
|
||||
|
||||
SkRect clipR = SkRect::MakeXYWH(SkIntToScalar(dx),
|
||||
SkRect clipR = SkRect::MakeXYWH(SkIntToScalar(dx),
|
||||
SkIntToScalar(dy),
|
||||
SkIntToScalar(bm.width()),
|
||||
SkIntToScalar(bm.height()));
|
||||
|
|
|
@ -371,7 +371,7 @@ struct SK_API SkRect {
|
|||
r.set(0, 0, size.width(), size.height());
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
static SkRect SK_WARN_UNUSED_RESULT MakeLTRB(SkScalar l, SkScalar t, SkScalar r, SkScalar b) {
|
||||
SkRect rect;
|
||||
rect.set(l, t, r, b);
|
||||
|
@ -490,7 +490,7 @@ struct SK_API SkRect {
|
|||
fRight = SkIntToScalar(width);
|
||||
fBottom = SkIntToScalar(height);
|
||||
}
|
||||
|
||||
|
||||
/** Set this rectangle to be the bounds of the array of points.
|
||||
If the array is empty (count == 0), then set this rectangle
|
||||
to the empty rectangle (0,0,0,0)
|
||||
|
|
|
@ -238,7 +238,7 @@ static bool render_picture(const SkString& inputPath, const SkString* outputDir,
|
|||
*bitmap->getAddr32(x, y));
|
||||
SkASSERT(diff >= 0 && diff <= 255);
|
||||
diffs[diff]++;
|
||||
|
||||
|
||||
if (diff > maxComponentDiff) {
|
||||
SkDebugf("Expected pixel at (%i %i) exceedds maximum "
|
||||
"component diff of %i: 0x%x, actual 0x%x\n",
|
||||
|
@ -559,7 +559,7 @@ static void parse_commandline(int argc, char* const argv[], SkTArray<SkString>*
|
|||
SkDebugf("maxComponentDiff: 0 - 256.\n");
|
||||
usage(argv0);
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
} else if (0 == strcmp(*argv, "--writeWholeImage")) {
|
||||
*writeWholeImage = true;
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче