#include "src/gpu/ganesh/GrPersistentCacheUtils.h"
#include "include/private/base/SkTo.h"
#include "include/private/gpu/ganesh/GrTypesPriv.h"
#include "src/core/SkReadBuffer.h"
#include "src/core/SkWriteBuffer.h"
#include "src/sksl/SkSLProgramSettings.h"
#include <algorithm>
#include <cstddef>
namespace GrPersistentCacheUtils {
static constexpr int kCurrentVersion = …;
int GetCurrentVersion() { … }
sk_sp<SkData> PackCachedShaders(SkFourByteTag shaderType,
const std::string shaders[],
const SkSL::Program::Interface interfaces[],
int numInterfaces,
const ShaderMetadata* meta) { … }
SkFourByteTag GetType(SkReadBuffer* reader) { … }
bool UnpackCachedShaders(SkReadBuffer* reader,
std::string shaders[],
SkSL::Program::Interface interfaces[],
int numInterfaces,
ShaderMetadata* meta) { … }
}