Sanitizing source files in Housekeeper-Nightly

git-svn-id: http://skia.googlecode.com/svn/trunk@9471 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
skia.committer@gmail.com 2013-06-07 07:01:06 +00:00
parent 6ede1fe62b
commit a009083bd1
3 changed files with 7 additions and 7 deletions

View File

@ -42,9 +42,9 @@ void SkImageWidget::paintEvent(QPaintEvent* event) {
if (command->render(fSurface->getCanvas())) {
QPoint origin(0,0);
QImage image((uchar*) fPixels,
QImage image((uchar*) fPixels,
kImageWidgetWidth,
kImageWidgetHeight,
kImageWidgetHeight,
QImage::Format_ARGB32_Premultiplied);
painter.drawImage(origin, image);

View File

@ -19,7 +19,7 @@ class SkImageWidget : public QWidget {
public:
SkImageWidget(SkDebugger* debugger);
virtual ~SkImageWidget() {
fSurface->unref();
}

View File

@ -104,7 +104,7 @@ void xlate_and_scale_to_bounds(SkCanvas* canvas, const SkRect& bounds) {
}
canvas->translate(-bounds.centerX(), -bounds.centerY());
}
void render_path(SkCanvas* canvas, const SkPath& path) {
canvas->clear(0xFFFFFFFF);
@ -137,7 +137,7 @@ void render_bitmap(SkCanvas* canvas, const SkBitmap& input, const SkRect* srcRec
SkRect dst = SkRect::MakeXYWH(SK_Scalar1, SK_Scalar1,
xScale * input.width(),
yScale * input.height());
canvas->clear(0xFFFFFFFF);
canvas->drawBitmapRect(input, NULL, dst);
@ -169,7 +169,7 @@ void render_rrect(SkCanvas* canvas, const SkRRect& rrect) {
canvas->drawRRect(rrect, p);
canvas->restore();
}
};
@ -518,7 +518,7 @@ bool DrawPoints::render(SkCanvas* canvas) const {
for (unsigned int i = 0; i < fCount; ++i) {
bounds.growToInclude(fPts[i].fX, fPts[i].fY);
}
xlate_and_scale_to_bounds(canvas, bounds);
SkPaint p;