aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Test.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Test.h')
-rw-r--r--tests/Test.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/Test.h b/tests/Test.h
index db2552b614..c9a381eb12 100644
--- a/tests/Test.h
+++ b/tests/Test.h
@@ -7,10 +7,11 @@
#ifndef skiatest_Test_DEFINED
#define skiatest_Test_DEFINED
-#include "SkString.h"
#include "../tools/Registry.h"
-#include "SkTypes.h"
#include "SkClipOpPriv.h"
+#include "SkString.h"
+#include "SkTraceEvent.h"
+#include "SkTypes.h"
#if SK_SUPPORT_GPU
#include "GrContextFactory.h"
@@ -94,6 +95,11 @@ struct Test {
const char* name;
bool needsGpu;
TestProc proc;
+
+ void run(skiatest::Reporter* r, sk_gpu_test::GrContextFactory* factory) const {
+ TRACE_EVENT1("test", TRACE_FUNC, "name", this->name/*these are static*/);
+ this->proc(r, factory);
+ }
};
typedef sk_tools::Registry<Test> TestRegistry;