aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/fiddle/fiddle_main.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fiddle/fiddle_main.h')
-rw-r--r--tools/fiddle/fiddle_main.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/fiddle/fiddle_main.h b/tools/fiddle/fiddle_main.h
index 5492a424ea..ca41998cba 100644
--- a/tools/fiddle/fiddle_main.h
+++ b/tools/fiddle/fiddle_main.h
@@ -20,6 +20,7 @@
#include "skia.h"
#endif
+#include <memory>
#include <sstream>
extern GrBackendTexture backEndTexture;
@@ -30,6 +31,10 @@ extern sk_sp<SkImage> image;
extern double duration; // The total duration of the animation in seconds.
extern double frame; // A value in [0, 1] of where we are in the animation.
+namespace sk_gpu_test {
+class GLTestContext;
+}
+
struct DrawOptions {
DrawOptions(int w, int h, bool r, bool g, bool p, bool k, bool srgb, bool f16,
bool textOnly, const char* s,
@@ -86,6 +91,7 @@ extern void draw(SkCanvas*);
// There are different implementations of create_grcontext() for EGL, Mesa,
// and a fallback to a null context.
-extern sk_sp<GrContext> create_grcontext(std::ostringstream &driverinfo);
+extern sk_sp<GrContext> create_grcontext(std::ostringstream& driverinfo,
+ std::unique_ptr<sk_gpu_test::GLTestContext>* glContext);
#endif // fiddle_main_DEFINED