Fiddle can use EGL if available.
To test this turn on egl, e.g. --args='skia_use_egl=true', and run by altering the
library path to point to the right directory of the EGL driver you want to use, for example:
LD_LIBRARY_PATH=/usr/lib/nvidia-367/ ./out/Release/fiddle | ./tools/fiddle/parse-fiddle-output
Bug: skia:
Change-Id: I2cce80318925fe88f9407646acb67628a8e48810
Reviewed-on: https://skia-review.googlesource.com/18137
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/tools/fiddle/fiddle_main.h b/tools/fiddle/fiddle_main.h
index 7be317b..4fadd36 100644
--- a/tools/fiddle/fiddle_main.h
+++ b/tools/fiddle/fiddle_main.h
@@ -55,4 +55,8 @@
extern void SkDebugf(const char * format, ...);
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();
+
#endif // fiddle_main_DEFINED