Update additional tools to take a GrDirectContext
GM was updated in:
https://skia-review.googlesource.com/c/skia/+/300172 (Make GM::onGpuSetup take a GrDirectContext)
This CL updates: skpbench, nanobench, and some testing infrastructure.
Only minor changes were made to the unit tests as they will be updated
en masse in a follow up cl.
Change-Id: Ieffc98865d4c9fc73e292d3c807ed4ae2081745a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/300220
Reviewed-by: Adlai Holler <adlai@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/tools/gpu/TestContext.cpp b/tools/gpu/TestContext.cpp
index 9b9e5dc..860b771 100644
--- a/tools/gpu/TestContext.cpp
+++ b/tools/gpu/TestContext.cpp
@@ -8,9 +8,8 @@
#include "tools/gpu/TestContext.h"
-#include "include/gpu/GrContext.h"
+#include "include/gpu/GrDirectContext.h"
#include "src/core/SkTraceEvent.h"
-#include "src/gpu/GrContextPriv.h"
#include "tools/gpu/FlushFinishTracker.h"
#include "tools/gpu/GpuTimer.h"
@@ -35,7 +34,7 @@
return asr;
}
-void TestContext::flushAndWaitOnSync(GrContext* context) {
+void TestContext::flushAndWaitOnSync(GrDirectContext* context) {
TRACE_EVENT0("skia.gpu", TRACE_FUNC);
SkASSERT(context);