Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkSLDebugTrace.h
Go to the documentation of this file.
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
12
13class SkWStream;
14
15namespace SkSL {
16
17class DebugTrace : public SkRefCnt {
18public:
19 /** Serializes a debug trace to JSON which can be parsed by our debugger. */
20 virtual void writeTrace(SkWStream* w) const = 0;
21
22 /** Generates a human-readable dump of the debug trace. */
23 virtual void dump(SkWStream* o) const = 0;
24};
25
26} // namespace SkSL
27
28#endif
virtual void writeTrace(SkWStream *w) const =0
virtual void dump(SkWStream *o) const =0
SkScalar w