зеркало из https://github.com/mozilla/moz-skia.git
Sadly TSAN still reports this as a race, even when we're obviously writing the
same values. Initializing with the declaration should quiet it down. BUG= R=caryclark@google.com Author: mtklein@google.com Review URL: https://codereview.chromium.org/25713004 git-svn-id: http://skia.googlecode.com/svn/trunk@11574 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
354fd97ee0
Коммит
409774e8ac
|
@ -447,8 +447,9 @@ static int comparePaths(skiatest::Reporter* reporter, const SkPath& one, const S
|
|||
return errors2x2 > MAX_ERRORS ? errors2x2 : 0;
|
||||
}
|
||||
|
||||
static int testNumber;
|
||||
static const char* testName;
|
||||
// Default values for when reporter->verbose() is false.
|
||||
static int testNumber = 1;
|
||||
static const char* testName = "pathOpTest";
|
||||
|
||||
static void writeTestName(const char* nameSuffix, SkMemoryWStream& outFile) {
|
||||
outFile.writeText(testName);
|
||||
|
@ -655,9 +656,6 @@ int initializeTests(skiatest::Reporter* reporter, const char* test) {
|
|||
testNumber = atoi(numLoc) + 1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
testName = "pathOpTest";
|
||||
testNumber = 1;
|
||||
}
|
||||
return reporter->allowThreaded() ? SkThreadPool::kThreadPerCore : 1;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче