From ff80c2ab305a25434d17fbcbec02b20d69b05227 Mon Sep 17 00:00:00 2001 From: Mike Reed Date: Sat, 7 Jan 2017 11:16:28 -0500 Subject: remove SkMemoryWStream -- unused externally BUG=skia: Change-Id: Idbc9af4e703238871f56f623cd616fb7a5e686d3 Reviewed-on: https://skia-review.googlesource.com/6727 Reviewed-by: Cary Clark Commit-Queue: Mike Reed --- tests/PathOpsExtendedTest.cpp | 43 +++++++++++++++++-------------------------- 1 file changed, 17 insertions(+), 26 deletions(-) (limited to 'tests/PathOpsExtendedTest.cpp') diff --git a/tests/PathOpsExtendedTest.cpp b/tests/PathOpsExtendedTest.cpp index 9b08ba923b..abc1770efd 100644 --- a/tests/PathOpsExtendedTest.cpp +++ b/tests/PathOpsExtendedTest.cpp @@ -370,17 +370,16 @@ static int comparePaths(skiatest::Reporter* reporter, const char* testName, cons static int testNumber = 55; static const char* testName = "pathOpTest"; -static void writeTestName(const char* nameSuffix, SkMemoryWStream& outFile) { - outFile.writeText(testName); - outFile.writeDecAsText(testNumber); +static void writeTestName(const char* nameSuffix, SkString& outFile) { + outFile.appendf("%s%d", testName, testNumber); ++testNumber; if (nameSuffix) { - outFile.writeText(nameSuffix); + outFile.append(nameSuffix); } } static void outputToStream(const char* pathStr, const char* pathPrefix, const char* nameSuffix, - const char* testFunction, bool twoPaths, SkMemoryWStream& outFile) { + const char* testFunction, bool twoPaths, SkString& outFile) { #if 0 outFile.writeText("\n
bumpTestCount(); @@ -633,7 +626,7 @@ void initializeTests(skiatest::Reporter* reporter, const char* test) { } } -void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType pathFillType) { +void PathOpsThreadState::outputProgress(const char* pathStr, SkPath::FillType pathFillType) { const char testFunction[] = "testSimplify(path);"; const char* pathPrefix = nullptr; const char* nameSuffix = nullptr; @@ -641,16 +634,14 @@ void outputProgress(char* ramStr, const char* pathStr, SkPath::FillType pathFill pathPrefix = " path.setFillType(SkPath::kEvenOdd_FillType);\n"; nameSuffix = "x"; } - SkMemoryWStream rRamStream(ramStr, PATH_STR_SIZE); - outputToStream(pathStr, pathPrefix, nameSuffix, testFunction, false, rRamStream); + outputToStream(pathStr, pathPrefix, nameSuffix, testFunction, false, fPathStr); } -void outputProgress(char* ramStr, const char* pathStr, SkPathOp op) { +void PathOpsThreadState::outputProgress(const char* pathStr, SkPathOp op) { const char testFunction[] = "testOp(path);"; SkASSERT((size_t) op < SK_ARRAY_COUNT(opSuffixes)); const char* nameSuffix = opSuffixes[op]; - SkMemoryWStream rRamStream(ramStr, PATH_STR_SIZE); - outputToStream(pathStr, nullptr, nameSuffix, testFunction, true, rRamStream); + outputToStream(pathStr, nullptr, nameSuffix, testFunction, true, fPathStr); } void RunTestSet(skiatest::Reporter* reporter, TestDesc tests[], size_t count, -- cgit v1.2.3