Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Unified Diff: tests/PathOpsSkpClipTest.cpp

Issue 1705583003: clean up more dead code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/OnceTest.cpp ('k') | tests/PathOpsThreadedCommon.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/PathOpsSkpClipTest.cpp
diff --git a/tests/PathOpsSkpClipTest.cpp b/tests/PathOpsSkpClipTest.cpp
index e70e1c0c663dc76622bd8add3d9c522f9503fb81..326abb66c7c52e6fa6cb63f7054caebbe0ffee1b 100644
--- a/tests/PathOpsSkpClipTest.cpp
+++ b/tests/PathOpsSkpClipTest.cpp
@@ -22,7 +22,6 @@
#include "SkPathOpsDebug.h"
#include "SkPicture.h"
#include "SkRTConf.h"
-#include "SkRunnable.h"
#include "SkTSort.h"
#include "SkStream.h"
#include "SkString.h"
@@ -260,9 +259,9 @@ struct TestRunner {
SkTDArray<class TestRunnable*> fRunnables;
};
-class TestRunnable : public SkRunnable {
+class TestRunnable {
public:
- void run() override {
+ void operator()() {
SkGraphics::SetTLSFontCacheLimit(1 * 1024 * 1024);
(*fTestFun)(&fState);
}
@@ -305,10 +304,8 @@ TestRunner::~TestRunner() {
}
void TestRunner::render() {
- // TODO: this doesn't really need to use SkRunnables any more.
- // We can just write the code to run in the for-loop directly.
SkTaskGroup().batch(fRunnables.count(), [&](int i) {
- fRunnables[i]->run();
+ (*fRunnables[i])();
});
}
« no previous file with comments | « tests/OnceTest.cpp ('k') | tests/PathOpsThreadedCommon.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698