#ifndef GrPersistentCacheEntry_DEFINED
#define GrPersistentCacheEntry_DEFINED
#include "include/core/SkData.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkTypes.h"
#include "include/private/base/SkTArray.h"
#include "src/sksl/ir/SkSLProgram.h"
#include <string>
class SkReadBuffer;
namespace SkSL { struct ProgramSettings; }
namespace GrPersistentCacheUtils {
struct ShaderMetadata { … };
int GetCurrentVersion();
sk_sp<SkData> PackCachedShaders(SkFourByteTag shaderType,
const std::string shaders[],
const SkSL::Program::Interface[],
int numInterfaces,
const ShaderMetadata* meta = nullptr);
SkFourByteTag GetType(SkReadBuffer* reader);
bool UnpackCachedShaders(SkReadBuffer* reader,
std::string shaders[],
SkSL::Program::Interface[],
int numInterfaces,
ShaderMetadata* meta = nullptr);
}
#endif