aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/fiddle/null_context.cpp
diff options
context:
space:
mode:
authorGravatar Joe Gregorio <jcgregorio@google.com>2017-05-31 09:45:19 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-31 14:23:56 +0000
commita8fabd3f28abcca6ddc1a233189bd6deb98510fb (patch)
treef948d7819658439a4843b362efcf965cb24b1a3a /tools/fiddle/null_context.cpp
parent361941eec909934eb960f3f2584946bbee48cde3 (diff)
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>
Diffstat (limited to 'tools/fiddle/null_context.cpp')
-rw-r--r--tools/fiddle/null_context.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/fiddle/null_context.cpp b/tools/fiddle/null_context.cpp
new file mode 100644
index 0000000000..c331e8a98c
--- /dev/null
+++ b/tools/fiddle/null_context.cpp
@@ -0,0 +1,13 @@
+/*
+ * Copyright 2015 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#include "fiddle_main.h"
+
+// create_grcontext for when neither Mesa nor EGL are available.
+sk_sp<GrContext> create_grcontext() {
+ return nullptr;
+}