#include "src/shaders/SkRuntimeShader.h"
#include "include/core/SkCapabilities.h"
#include "include/core/SkData.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkShader.h"
#include "include/core/SkString.h"
#include "include/effects/SkRuntimeEffect.h"
#include "include/private/SkSLSampleUsage.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkTArray.h"
#include "include/sksl/SkSLDebugTrace.h"
#include "src/base/SkTLazy.h"
#include "src/core/SkEffectPriv.h"
#include "src/core/SkPicturePriv.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkRuntimeEffectPriv.h"
#include "src/core/SkWriteBuffer.h"
#include "src/shaders/SkShaderBase.h"
#include "src/sksl/codegen/SkSLRasterPipelineBuilder.h"
#include "src/sksl/tracing/SkSLDebugTracePriv.h"
#include <cstdint>
#include <optional>
#include <string>
#include <utility>
#if defined(SK_BUILD_FOR_DEBUGGER)
constexpr bool kLenientSkSLDeserialization = true;
#else
constexpr bool kLenientSkSLDeserialization = …;
#endif
class SkColorSpace;
struct SkIPoint;
SkRuntimeShader::SkRuntimeShader(sk_sp<SkRuntimeEffect> effect,
sk_sp<SkSL::DebugTracePriv> debugTrace,
sk_sp<const SkData> uniforms,
SkSpan<const SkRuntimeEffect::ChildPtr> children)
: … { … }
SkRuntimeShader::SkRuntimeShader(sk_sp<SkRuntimeEffect> effect,
sk_sp<SkSL::DebugTracePriv> debugTrace,
UniformsCallback uniformsCallback,
SkSpan<const SkRuntimeEffect::ChildPtr> children)
: … { … }
static sk_sp<SkSL::DebugTracePriv> make_debug_trace(SkRuntimeEffect* effect,
const SkIPoint& coord) { … }
SkRuntimeEffect::TracedShader SkRuntimeShader::makeTracedClone(const SkIPoint& coord) { … }
bool SkRuntimeShader::appendStages(const SkStageRec& rec, const SkShaders::MatrixRec& mRec) const { … }
void SkRuntimeShader::flatten(SkWriteBuffer& buffer) const { … }
sk_sp<const SkData> SkRuntimeShader::uniformData(const SkColorSpace* dstCS) const { … }
sk_sp<SkFlattenable> SkRuntimeShader::CreateProc(SkReadBuffer& buffer) { … }