aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSKSLPrettyPrint.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-05-15 11:00:58 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-05-15 15:41:01 +0000
commite334c596546c7ec79f2b0e55b3a1c2839a94f352 (patch)
treee84c3c7209693de32ec8722d09d6e1bafbee74ad /src/gpu/GrSKSLPrettyPrint.h
parent63cef6b8c11b8f5d5584a13929e218f520a49669 (diff)
Attempt to work around iOS varying limit in GLPrograms test
Dump shaders when linking fails. Bug: skia:6627 Change-Id: I7f1df4be039eb56d990aa64c58c8dd2a22d97dbe Reviewed-on: https://skia-review.googlesource.com/16867 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrSKSLPrettyPrint.h')
-rw-r--r--src/gpu/GrSKSLPrettyPrint.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gpu/GrSKSLPrettyPrint.h b/src/gpu/GrSKSLPrettyPrint.h
new file mode 100644
index 0000000000..8fa4c1ec53
--- /dev/null
+++ b/src/gpu/GrSKSLPrettyPrint.h
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2014 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+#ifndef GrSKSLPrettyPrint_DEFINED
+#define GrSKSLPrettyPrint_DEFINED
+
+#include "SkString.h"
+
+namespace GrSKSLPrettyPrint {
+SkString PrettyPrint(const char** strings, int* lengths, int count, bool countlines);
+};
+
+#endif