aboutsummaryrefslogtreecommitdiff
path: root/src/deps/skia/include/sksl/SkSLDebugTrace.h
blob: 9c5eafbc94ed57003aed1134e1e9b08f4a179596 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * 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_DEBUG_TRACE
#define SKSL_DEBUG_TRACE

#include "include/core/SkRefCnt.h"

class SkWStream;

namespace SkSL {

class DebugTrace : public SkRefCnt {
public:
    /** Serializes a debug trace to JSON which can be parsed by our debugger. */
    virtual void writeTrace(SkWStream* w) const = 0;

    /** Generates a human-readable dump of the debug trace. */
    virtual void dump(SkWStream* o) const = 0;
};

} // namespace SkSL

#endif