543b8681c7
Color filters and blenders are currently not supported for tracing, because we don't have access to the pixel coordinate, and so there is nothing to compare the debug-trace coordinate with. Change-Id: I7fe7fb4955b002432046ceef61c6f0a4c721a581 Bug: skia:12708 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/481278 Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
29 lines
590 B
C++
29 lines
590 B
C++
/*
|
|
* 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
|