aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-10-20 11:05:06 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-20 11:05:06 -0700
commita1bde7d2e152188f8d5a2d0f759030ed032a2522 (patch)
treede7478fb950b474c5fbc41e5c30c1770a834df0c /tests
parent1d3ff434954189e194c468f429598465146dcf4b (diff)
Remove SkThread::setProcessorAffinity()
It's only used by a couple unit tests. We have other ways of getting the same quality testing of our ref-count code now (e.g. TSAN). BUG=skia: CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot,Build-Mac10.9-Clang-x86_64-Release-CMake-Trybot Review URL: https://codereview.chromium.org/1408213005
Diffstat (limited to 'tests')
-rw-r--r--tests/AtomicTest.cpp8
-rw-r--r--tests/RefCntTest.cpp8
2 files changed, 3 insertions, 13 deletions
diff --git a/tests/AtomicTest.cpp b/tests/AtomicTest.cpp
index e9db3f093d..530fba79d5 100644
--- a/tests/AtomicTest.cpp
+++ b/tests/AtomicTest.cpp
@@ -13,15 +13,14 @@
struct AddInfo {
int32_t valueToAdd;
int timesToAdd;
- unsigned int processorAffinity;
};
static int32_t base = 0;
static AddInfo gAdds[] = {
- { 3, 100, 23 },
- { 2, 200, 2 },
- { 7, 150, 17 },
+ { 3, 100 },
+ { 2, 200 },
+ { 7, 150 },
};
static void addABunchOfTimes(void* data) {
@@ -40,7 +39,6 @@ DEF_TEST(Atomic, reporter) {
// Start the threads
for (size_t i = 0; i < SK_ARRAY_COUNT(gAdds); i++) {
threads[i] = new SkThread(addABunchOfTimes, &gAdds[i]);
- threads[i]->setProcessorAffinity(gAdds[i].processorAffinity);
threads[i]->start();
}
diff --git a/tests/RefCntTest.cpp b/tests/RefCntTest.cpp
index b73618d9f3..6a1e0dc2fe 100644
--- a/tests/RefCntTest.cpp
+++ b/tests/RefCntTest.cpp
@@ -25,9 +25,6 @@ static void test_refCnt(skiatest::Reporter* reporter) {
SkThread thing1(bounce_ref, ref);
SkThread thing2(bounce_ref, ref);
- thing1.setProcessorAffinity(0);
- thing2.setProcessorAffinity(23);
-
SkASSERT(thing1.start());
SkASSERT(thing2.start());
@@ -63,11 +60,6 @@ static void test_weakRefCnt(skiatest::Reporter* reporter) {
SkThread thing3(bounce_weak_ref, ref);
SkThread thing4(bounce_weak_weak_ref, ref);
- thing1.setProcessorAffinity(0);
- thing2.setProcessorAffinity(23);
- thing3.setProcessorAffinity(2);
- thing4.setProcessorAffinity(17);
-
SkASSERT(thing1.start());
SkASSERT(thing2.start());
SkASSERT(thing3.start());