Index: dm/DMTestTask.cpp |
diff --git a/dm/DMTestTask.cpp b/dm/DMTestTask.cpp |
index 7a5f8cf9f98d606d07d78f290c7f698484910040..32a698c6738cbfd9bb28ed5decfc106ea2e6d896 100644 |
--- a/dm/DMTestTask.cpp |
+++ b/dm/DMTestTask.cpp |
@@ -8,17 +8,22 @@ DEFINE_bool2(pathOpsVerbose, V, false, "Tell pathOps tests to be verbose.") |
namespace DM { |
+static SkString test_name(const char* name) { |
+ SkString result("test "); |
+ result.append(name); |
+ return result; |
+} |
+ |
TestTask::TestTask(Reporter* reporter, |
TaskRunner* taskRunner, |
skiatest::TestRegistry::Factory factory) |
: Task(reporter, taskRunner) |
- , fTaskRunner(taskRunner) |
, fTest(factory(NULL)) |
- , fName(UnderJoin("test", fTest->getName())) {} |
+ , fName(test_name(fTest->getName())) {} |
void TestTask::draw() { |
if (this->usesGpu()) { |
- fTest->setGrContextFactory(fTaskRunner->getGrContextFactory()); |
+ fTest->setGrContextFactory(this->getGrContextFactory()); |
} |
fTest->setReporter(&fTestReporter); |
fTest->run(); |