chromium/third_party/skia/src/sksl/SkSLErrorReporter.h

/*
 * Copyright 2021 Google LLC.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef SKSL_ERROR_REPORTER
#define SKSL_ERROR_REPORTER

#include "include/core/SkTypes.h"

#include <string_view>

namespace SkSL {

class Position;

/**
 * Class which is notified in the event of an error.
 */
class ErrorReporter {};

/**
 * Error reporter for tests that need an SkSL context; aborts immediately if an error is reported.
 */
class TestingOnly_AbortErrorReporter : public ErrorReporter {};

} // namespace SkSL

#endif