[fiddle] Init gpu using the GLTestContext.
The previous way was failing with SwiftShader.
Bug: skia:
Change-Id: I6f3937d4d3bc36851476e29be891dc0a38871ef0
Reviewed-on: https://skia-review.googlesource.com/130325
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
diff --git a/tools/fiddle/null_context.cpp b/tools/fiddle/null_context.cpp
index 3fe0054..903ae10 100644
--- a/tools/fiddle/null_context.cpp
+++ b/tools/fiddle/null_context.cpp
@@ -8,7 +8,8 @@
#include "fiddle_main.h"
// create_grcontext for when neither Mesa nor EGL are available.
-sk_sp<GrContext> create_grcontext(std::ostringstream &driverinfo) {
+sk_sp<GrContext> create_grcontext(std::ostringstream& driverinfo,
+ std::unique_ptr<sk_gpu_test::GLTestContext>* glContext) {
driverinfo << "(no GL driver available)";
return nullptr;
}