Sanitizing source files in Skia_Periodic_House_Keeping

git-svn-id: http://skia.googlecode.com/svn/trunk@5373 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
skia.committer@gmail.com 2012-08-31 17:14:46 +00:00
parent 8e073ba2d6
commit 11f869277c
3 changed files with 7 additions and 7 deletions

View File

@ -47,12 +47,12 @@ class PictFileView : public SampleView {
if (stream.isValid()) {
pic = SkNEW_ARGS(SkPicture, (&stream));
}
if (false) { // re-record
SkPicture p2;
pic->draw(p2.beginRecording(pic->width(), pic->height()));
p2.endRecording();
SkString path2(path);
path2.append(".new.skp");
SkFILEWStream writer(path2.c_str());

View File

@ -60,7 +60,7 @@ int SkPictureRecord::save(SaveFlags flags) {
// record the offset to us, making it non-positive to distinguish a save
// from a clip entry.
fRestoreOffsetStack.push(-(int32_t)fWriter.size());
addDraw(SAVE);
addInt(flags);
@ -73,7 +73,7 @@ int SkPictureRecord::saveLayer(const SkRect* bounds, const SkPaint* paint,
// record the offset to us, making it non-positive to distinguish a save
// from a clip entry.
fRestoreOffsetStack.push(-(int32_t)fWriter.size());
addDraw(SAVE_LAYER);
addRectPtr(bounds);
addPaintPtr(paint);
@ -190,7 +190,7 @@ static bool collapseSaveClipRestore(SkWriter32* writer, int32_t offset) {
}
offset += opSize;
}
#ifdef TRACK_COLLAPSE_STATS
gCollapseCount += 1;
SkDebugf("Collapse [%d out of %d] %g%spn", gCollapseCount, gCollapseCalls,
@ -300,7 +300,7 @@ void SkPictureRecord::fillRestoreOffsetPlaceholdersForCurrentStackLevel(
offset = *peek;
*peek = restoreOffset;
}
#ifdef SK_DEBUG
// assert that the final offset value points to a save verb
uint32_t drawOp = *fWriter.peek32(-offset);

View File

@ -1164,7 +1164,7 @@ static void print_diff_page (const int matchCount,
"var fileMultiLineString = '';\n"
"for (var i = 0; i < boxes.length; i++) {\n"
"fileMultiLineString += boxes[i].name + '<br>';\n"
"fileCmdLineString += boxes[i].name + '&nbsp;';\n"
"fileCmdLineString += boxes[i].name + '&nbsp;';\n"
"}\n"
"$(\"#checkedList\").html(fileCmdLineString + "
"'<br><br>' + fileMultiLineString);\n"