1 /* 2 * Copyright 2022 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 SkSLNoOpErrorReporter_DEFINED 9 #define SkSLNoOpErrorReporter_DEFINED 10 11 #include "include/sksl/SkSLErrorReporter.h" 12 13 namespace SkSL { 14 15 // We can use a no-op error reporter to silently ignore errors. 16 class NoOpErrorReporter : public ErrorReporter { 17 public: handleError(std::string_view,Position)18 void handleError(std::string_view, Position) override {} 19 }; 20 21 } // namespace SkSL 22 23 #endif 24