}
bool success = false;
- SkTimedPicture picture(&inputStream, &success, &SkImageDecoder::DecodeStream,
+ SkTimedPicture picture(&inputStream, &success, &SkImageDecoder::DecodeStream,
fOffsets, fSkipCommands);
if (!success) {
return;
if (offset >= fWrittenBeforeLastBlock) {
return fTail->peek32(offset - fWrittenBeforeLastBlock);
}
-
+
Block* block = fHead;
SkASSERT(NULL != block);
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) {
SkPicture* inPicture = NULL;
if (NULL == pathStream) {
return;
}
-
+
pathStream->writeText("#include \"SkScalar.h\"\n");
pathStream->writeText("#include \"SkPoint.h\"\n");
pathStream->writeText("#include \"SkBitmap.h\"\n");
pathStream->writeText(" = ");
pathStream->writeDecAsText(numVerbs);
pathStream->writeText(";\n");
-
+
pathStream->writeText("uint8_t verbs");
pathStream->writeDecAsText(gCurPathID);
pathStream->writeText("[] = {\n");
// dump_path_suffix - once per program invocation
//
// 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.
// Write of the headers needed to compile the resulting .cpp file
void dump_path_suffix(SkFILEWStream* pathStream);
}
-#endif
\ No newline at end of file
+#endif