blob: c30120dcc8157dab4b18ffd7735331d23ae8e5a4 [file] [log] [blame]
Brian Osmanac9be9d2019-05-01 10:29:34 -04001/*
2 * Copyright 2019 Google LLC
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef GrShaderUtils_DEFINED
9#define GrShaderUtils_DEFINED
10
11#include "include/core/SkTypes.h"
Brian Osman5e7fbfd2019-05-03 13:13:35 -040012#include "include/gpu/GrContextOptions.h"
Brian Osmanac9be9d2019-05-01 10:29:34 -040013#include "src/sksl/SkSLString.h"
14
15namespace GrShaderUtils {
16
17SkSL::String PrettyPrint(const SkSL::String& string);
18void PrintLineByLine(const char* header, const SkSL::String& text);
Brian Osman5e7fbfd2019-05-03 13:13:35 -040019GrContextOptions::ShaderErrorHandler* DefaultShaderErrorHandler();
Brian Osmanac9be9d2019-05-01 10:29:34 -040020
21}
22
23#endif