• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "src/sksl/SkSLErrorReporter.h"
12 #include "src/sksl/SkSLPosition.h"
13 
14 namespace SkSL {
15 
16 // We can use a no-op error reporter to silently ignore errors.
17 class NoOpErrorReporter : public ErrorReporter {
18 public:
handleError(std::string_view,Position)19     void handleError(std::string_view, Position) override {}
20 };
21 
22 } // namespace SkSL
23 
24 #endif
25