Sanitizing source files in Skia_Periodic_House_Keeping
git-svn-id: http://skia.googlecode.com/svn/trunk@6721 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
f97593c899
commit
c1f224ac07
@ -358,7 +358,7 @@ void SkDebuggerGUI::actionProfile() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool success = false;
|
bool success = false;
|
||||||
SkTimedPicture picture(&inputStream, &success, &SkImageDecoder::DecodeStream,
|
SkTimedPicture picture(&inputStream, &success, &SkImageDecoder::DecodeStream,
|
||||||
fOffsets, fSkipCommands);
|
fOffsets, fSkipCommands);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
return;
|
return;
|
||||||
|
@ -159,7 +159,7 @@ uint32_t* SkWriter32::peek32(size_t offset) {
|
|||||||
if (offset >= fWrittenBeforeLastBlock) {
|
if (offset >= fWrittenBeforeLastBlock) {
|
||||||
return fTail->peek32(offset - fWrittenBeforeLastBlock);
|
return fTail->peek32(offset - fWrittenBeforeLastBlock);
|
||||||
}
|
}
|
||||||
|
|
||||||
Block* block = fHead;
|
Block* block = fHead;
|
||||||
SkASSERT(NULL != block);
|
SkASSERT(NULL != block);
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ static bool PNGEncodeBitmapToStream(SkWStream* stream, const SkBitmap& bitmap) {
|
|||||||
return SkImageEncoder::EncodeStream(stream, bitmap, SkImageEncoder::kPNG_Type, 100);
|
return SkImageEncoder::EncodeStream(stream, bitmap, SkImageEncoder::kPNG_Type, 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
int filter_picture(const SkString& inFile, const SkString& outFile,
|
int filter_picture(const SkString& inFile, const SkString& outFile,
|
||||||
const SkString& textureDir, SkFILEWStream *pathStream) {
|
const SkString& textureDir, SkFILEWStream *pathStream) {
|
||||||
SkPicture* inPicture = NULL;
|
SkPicture* inPicture = NULL;
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ namespace sk_tools {
|
|||||||
if (NULL == pathStream) {
|
if (NULL == pathStream) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
pathStream->writeText("#include \"SkScalar.h\"\n");
|
pathStream->writeText("#include \"SkScalar.h\"\n");
|
||||||
pathStream->writeText("#include \"SkPoint.h\"\n");
|
pathStream->writeText("#include \"SkPoint.h\"\n");
|
||||||
pathStream->writeText("#include \"SkBitmap.h\"\n");
|
pathStream->writeText("#include \"SkBitmap.h\"\n");
|
||||||
@ -81,7 +81,7 @@ namespace sk_tools {
|
|||||||
pathStream->writeText(" = ");
|
pathStream->writeText(" = ");
|
||||||
pathStream->writeDecAsText(numVerbs);
|
pathStream->writeDecAsText(numVerbs);
|
||||||
pathStream->writeText(";\n");
|
pathStream->writeText(";\n");
|
||||||
|
|
||||||
pathStream->writeText("uint8_t verbs");
|
pathStream->writeText("uint8_t verbs");
|
||||||
pathStream->writeDecAsText(gCurPathID);
|
pathStream->writeDecAsText(gCurPathID);
|
||||||
pathStream->writeText("[] = {\n");
|
pathStream->writeText("[] = {\n");
|
||||||
|
@ -19,7 +19,7 @@ namespace sk_tools {
|
|||||||
// dump_path_suffix - once per program invocation
|
// dump_path_suffix - once per program invocation
|
||||||
//
|
//
|
||||||
// The output system relies on a global current path ID and assumes that
|
// The output system relies on a global current path ID and assumes that
|
||||||
// only one set of aggregation arrays will be written per program
|
// only one set of aggregation arrays will be written per program
|
||||||
// invocation. These utilities are not thread safe.
|
// invocation. These utilities are not thread safe.
|
||||||
|
|
||||||
// Write of the headers needed to compile the resulting .cpp file
|
// Write of the headers needed to compile the resulting .cpp file
|
||||||
@ -44,4 +44,4 @@ namespace sk_tools {
|
|||||||
void dump_path_suffix(SkFILEWStream* pathStream);
|
void dump_path_suffix(SkFILEWStream* pathStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user