1 /* 2 * Copyright 2021 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 SKSL_DEBUG_TRACE 9 #define SKSL_DEBUG_TRACE 10 11 #include "include/core/SkRefCnt.h" 12 13 class SkWStream; 14 15 namespace SkSL { 16 17 class DebugTrace : public SkRefCnt { 18 public: 19 /** Generates a human-readable dump of the debug trace. */ 20 virtual void dump(SkWStream* o) const = 0; 21 }; 22 23 } // namespace SkSL 24 25 #endif 26